kube-vip / kube-vip

Kubernetes Control Plane Virtual IP and Load-Balancer
https://kube-vip.io
Apache License 2.0
2.14k stars 231 forks source link

Equinix Metal CCM Service Load Balancer IP not working #913

Open enkelprifti98 opened 2 months ago

enkelprifti98 commented 2 months ago

Describe the bug Starting with kube-vip version 0.8.2 there's an error in the logs that shows "invalid CIDR address" for the Elastic IP used via the Equinix Metal CCM. The service / IP is not reachable.

Version 0.8.0 and older work fine.

time="2024-08-08T03:43:34Z" level=error msg="[invalid CIDR address: 147.28.145.252/] error adding BGP host endpoints\n"

To Reproduce Steps to reproduce the behavior:

Deploy kubernetes cluster via kubeadm on Equinix Metal with CCM. Install kube-vip via the following commands:

alias kube-vip="docker run --network host --rm plndr/kube-vip:v0.8.2"
kube-vip manifest daemonset   --interface lo   --services   --bgp   --annotations metal.equinix.com   --inCluster | kubectl apply -f -

Expected behavior Kube-vip should be announcing the Elastic IP via BGP to its peers.

Environment (please complete the following information):

cprivitere commented 2 months ago

Try adding --cidr 32 to the manifest call and see if that works.

vielmetti commented 4 weeks ago

@enkelprifti98 did the flag suggested by @cprivitere work? If so then the fix to this issue is docs.