How do I set the kgateway LoadBalancer to RequireDualStack? #13638
tomalexander
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a self-hosted kubernetes cluster with cilium for the CNI, MetalLB for the IPAM, and kgateway for the gateway controller. If I deploy a test nginx service and expose it through a gateway:
Then that creates a
LoadBalancernamednginx-gatewaywhich is configured as:I can manually patch that
LoadBalancerto dual stack, and then it gets both an ipv4 and ipv6 address and everything works:kubectl patch svc nginx-gateway -p '{"spec": {"ipFamilyPolicy": "RequireDualStack","ipFamilies":["IPv6","IPv4"]}}'I'm under the impression that kgateway, as the gateway API controller, is creating the
LoadBalancerresource, but I cannot find a setting in kgateway to tell it to create a dual stackLoadBalancerinstead of a single stack one.I've found the
controller.service.ipFamilyPolicysetting in the helm chart but based on the name, I'm guessing that is meant to configure the controller's service rather than theLoadBalancersthat the controller creates (I haven't tested it myself since that helm option has not been part of a stable release yet).Searching the docs for "ipFamilyPolicy", "ipFamilies", "RequireDualStack", "PreferDualStack", "dual stack" turned up nothing except for "dual stack" returning some open telemetry pages.
Grepping for
ipFamilyPolicyin the kgateway repo only turned up the helm chart and some test files.Searching for "ipFamilies" in discussions, pull requests, and issues didn't turn up anything that seemed relevant (except for this issue which might be tangentially related but it seems to be more about health checks rather than about setting up dual stack
LoadBalancers).Beta Was this translation helpful? Give feedback.
All reactions