-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Release-1.26] - Dual-stack not supporting <IPv6><IPv4> #8502
Comments
Validated on release-1.26 branch using commit id 43d9986Environment DetailsInfrastructure Node(s) CPU architecture, OS, and Version: Cluster Configuration: Config.yaml:
Steps to reproduce the issue and validate the fix
Replication results:
coredns, metrics-server shows SingleStack
Services in dual-stack are includes Singlestack for core and metrics-server
Validation Results:
Services in dual-stack are all using IPFamily: PreferDualStack
Pods display ipv4 IP address
Also the IP order is ipv4, ipv6 compared to v1.28 and v1.27
|
@rbrtbnfgl Please take a look at the results for the Pod IP in the above validation. With passing node-ip and without, results show the same IP order. |
Kubelet with an external cloud provider on 1.26 doesn't support a dualstack node-ip, then we can't configure the node-ip as IPv6,IPv4 to prioritize IPv6 as primary podIP as we did on 1.27 and 1.28. |
Even if we can't do it via k3s/pkg/cloudprovider/instances.go Lines 43 to 61 in 6aef26e
|
I'll check if it's configured right on the cloud provider. There are a lot of part where that needed to be changed to prioritize IPv6 some of them was done by @manuelbuil maybe we missed some part. |
The values for internal-ip and external-ip should be ordered correctly. The issue here is that the primary podIP is the IPv4 and not IPv6 and it should be related to the kubelet configuration. |
I checked the kubelet code where the first podIP is selected. The function |
Thanks @rbrtbnfgl. Closing issue as validated as we can't prioritise the IPv6 on the list of the pods on v1.26 and v1.25 |
Small fix if you configure |
Backport fix for Dual-stack not supporting
The text was updated successfully, but these errors were encountered: