Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable gateway sidecar only when replicasCount of controller is 1 #714

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fengxsong
Copy link
Contributor

When running the ingress-controller, we usually scale the replicas to more than 1 to ensure HA. but in experimental mode which start the built-in etcd grpcserver, as all the controllers had enabled leader election, then only one of then can actually serve grpc requests from APISIX gateway. In another words, only the gateway that live with the working ingress-controller can process requests from clients.

This PR restricts gateway related manifests to be rendered only when the replicasCount=1 and gateway.enabled=true.

changes in the charts/apisix/templates/configmap.yaml allow us to test this feature without too much modifications.

@fengxsong fengxsong marked this pull request as draft January 31, 2024 05:58
Signed-off-by: fengxusong <fengxsong@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant