-
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
Dual-stack not supporting <IPv6><IPv4> #8467
Comments
Validated using commit id e82b376 on master branchEnvironment DetailsInfrastructure Node(s) CPU architecture, OS, and Version: Cluster Configuration: Config.yaml:
Steps to reproduce the issue and validate the fix
Validation results:
Services in dual-stack are all using IPFamily: PreferDualStack
Pods have both ipv4 and ipv6 IPs. Pods list ipv4. Fix coming in soon
Both ipv4 as well as ipv6 ip are available
Validating pod to pod communication
|
reopened for testing |
Validated fix to prioritize IPv6 on the pods using commit id 5b6b968.
|
On a multi-node cluster
Both ipv4 as well as ipv6 ip are available, prioritizing ipv6 ip
Re-validating services in dual-stack are all using IPFamily: PreferDualStack
Validating Pod to Pod communication
|
@ShylajaDevadiga I did note ServiceLB appears to still prefer IPv4 over IPv6 in the list - is that an issue?
Based on this it looks like the service ClusterIP is IPv6 only - is that correct, or is it actually dual-stack? |
@brandond service ClusterIP has both ipv6 as well as ipv4, ipv6 is only displayed in the output. Order is ServiceLB is ipv4 first. @rbrtbnfgl please advice
|
|
Thanks @brandond |
Environmental Info:
K3s Version:
Any
Node(s) CPU architecture, OS, and Version:
Cluster Configuration:
Any
Describe the bug:
This bug is covered by a bigger bug: rancher/rke2#4772
If we deploy k3s with networking flags using the IPFamily order
<IPv6><IPv4>
, we are seeing problems. There are workarounds to those problems but even then, IPv4 takes precedence over IPv6, not honoring the orderSteps To Reproduce:
Deploy k3s in dual-stack mode but using:
And you will see several problems happening (e.g. kube-api or netpol). Defining an "advertise-address" are disabling netpol makes k3s start but then you'll see that services IPs are all ipv4
Expected behavior:
User can set networking flags as
<IPv6>,<IPv4>
and k3s starts without problems. Moreover, IPv6 is prioritized over IPv4Actual behavior:
Additional context / logs:
The text was updated successfully, but these errors were encountered: