-
Notifications
You must be signed in to change notification settings - Fork 354
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
dnslookupfamily returns ipv6 addresses for external clusters (oidc) #4744
Comments
This was introduced by #4740 Auto prioritizes IPv6 over IPv4.
cc @zirain |
I reverted PR #4740 from main, and now my OIDC is back working again. So AUTO is not correct if the oidc do have ipv6 dns records and cluster do have only ipv4. Funny that envoyproxy does not check the interfaces that it has, it just cannot work like this. IMO envoyproxy should also fallback to ipv4 with AUTO setting because it does not have ipv6 interface It looks like it is possible to change the behaviour with https://github.com/envoyproxy/gateway/blob/main/api/v1alpha1/envoyproxy_types.go#L149 However, that says
that is not true now. |
I recall it's designed for listener address, we maybe need another knob for your case. |
a work around would be create a envoyproxy with IPFamily IPv4 and point to |
I think we can use the current // IPFamily specifies the IP family for the EnvoyProxy fleet. A dedicated configuration knob for DNS lookup family can be added later if people ask for it. |
@zetaab can you try with V4_PREFERRED as default value on your cluster? |
3b26516 passed on CI. |
+1 to V4_PREFERRED as default to maintain backwards compatibility |
I encountered the following error in a pod deployed by the Gateway:
It tries to connect to some unknown IPv6 address even though I have a single-stack k8s cluster and all pods/services have only IPv4 addresses.
Is that error caused by the same issue? |
@alrai yes, its same issue |
I can but in next week |
Description:
I compiled new version from latest master and our OIDC is now broken.
Like can be seen our oidc now tries to use ipv6. However, we do not have ipv6 connectivity in our cluster at all
example interfaces
Repro steps:
#4740 is perhaps the PR that is breaking this
Environment:
Logs:
The text was updated successfully, but these errors were encountered: