-
Notifications
You must be signed in to change notification settings - Fork 296
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
Unable to use kube-vip-cloud-provider in CAPV clusters #3164
Comments
More of a limitation in kube-vip. And as we discussed in slack, this is fixed in kube-vip 0.8. But even kube-vip is bumped to 0.8, since node name doesn't match the fqdn name, CPI will fail to find the corresponding VM for the node. I think we should revert this PR fcd243d It was aiming at addressing the node name length issue, but then if customer has search domain defined for hostname and the length is within 64 character, CPI will fail to initialize node If you all think it's reasonable I can create an issue to revert it |
Thank you @lubronzhan. I will also add my remarks from this morning. We have that issue with node names, related to v0.6.4, which isn't a problem for initial deployment and control plane HA Maybe CAPV intended way to implement kube-vip for workloads is through a new daemonset on the workload cluster, the problem with that is the control plane kube-vip has |
Ohk I would correct mine comment around the real issue. It's actually the /etc/hosts is not having the
Current way would support |
But there is still the problem that 0.6.4 wouldn't work even with cluster policy, because of the short name bug right ? |
Yes. So need to upgrade to new 0.8. This PR fcd243d#diff-e76b4b2137138f55f29ce20dd0ab8287648f3d8eb23a841a2e5c51ff88949750R120 also add the local_hostname to /etc/hosts. Maybe that's also one of the reason, so only the short hostname is in your |
Maybe also relevant: the kube-vip static pod currently runs with its own This is to workaround the issue at: An improved way may be a preKubeadmCommand which copies the original Note: this workaround is only required when kube-vip runs as static pod. So instead of adding the static file
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
/kind bug
What steps did you take and what happened:
What did you expect to happen:
I was expecting kube-vip to assign external ip to the IP given by kube-vip-cloud-provider
Anything else you would like to add:
This seems to be related to kube-vip/kube-vip#723 which prevents provisioning of the IP on the service when node names aren't FQDNs (which is what CAPV does it seems, and I didn't find a way to change that yet. Adding a searchdomain leads to the same result).
After changing
kube-vip
Pod image tov0.8.2
incluster.yaml
as :Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: