-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
ipv6 support issue for vsphere cloud privider #85886
Comments
If you agree with this I can fix it. |
@hubv: Reiterating the mentions to trigger a notification: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@kubernetes/cloud-provider-bugs |
cc @kubernetes/cloud-provider-vsphere-admins /remove-sig contributor-experience |
/cc |
please help to review, I think I can fix the issue by PR#86001 |
/assign |
What happened:
IP addresses losing in k8s node status in a pure ipv6 vsphere environment.
all interfaces of nodes in this cluster are ipv6 only
The error logs in kubelet as the following:
What you expected to happen:
It will be very appreciated if we can get ipv6 addresses from vsphere cloud provider as ipv4 env
How to reproduce it (as minimally and precisely as possible):
deploy k8s cluster in vsphere pure ipv6 envirenment
Anything else we need to know?:
From the code
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/legacy-cloud-providers/vsphere/vsphere.go#L682-L700
we can know that while the provider retrieves VM’s IP, It uses To4() function for all ip addresses from vsphere platform, this function can’t handle ipv6 addresses as mentioned in guild: https://golang.org/pkg/net/#IP.To4
Environment:
kubectl version
):vsphere
cat /etc/os-release
):uname -a
):ansible
calico v3.5.6
The text was updated successfully, but these errors were encountered: