Skip to content
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

OpenELB in VIP Mode in k8s cluster causes node-ip confusion #384

Open
bdowling opened this issue Feb 27, 2024 · 1 comment
Open

OpenELB in VIP Mode in k8s cluster causes node-ip confusion #384

bdowling opened this issue Feb 27, 2024 · 1 comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.

Comments

@bdowling
Copy link

bdowling commented Feb 27, 2024

Describe the bug

When using OpenELB in VIP mode, this adds virtual addresses to the node's interface. If kubelet is not configured with a static --node-ip, it will randomly pick a local IP for the node's InternalIP.

While this is not really a bug in OpenELB, it is an issue that I feel should be documented in your instructions as I'm sure others will come across this issue.

THE FIX

Adding --node-ip [nodes-primary-ip] to respective kubelet systemd startup script for your system, e.g. /etc/systemd/system/kubelet.service does the trick to force kubelet to a fixed node ip.

To Reproduce

Install OpenELB and configure it for VIP mode per instructions:
https://openelb.io/docs/getting-started/usage/use-openelb-in-vip-mode/

Deploy a LoadBalanced service.

run kubectl get nodes repeatedly and you will see Internal IPs randomly match your service IPs.

Or you could run this and grep for IPs in your vip-pool
kubectl get nodes "$@" -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}' | sed -e 's/ /\n/g'; echo

Expected behaviour

NA - now that I know what happened, it was expected behavior :)

Output
NA
Version Info

  • Version of Kubernetes: 1.28.4
  • Version of OpenELB: 0.5.0
@renyunkang
Copy link
Member

Thanks for pointing it out, we will add documentation later.

@renyunkang renyunkang added the kind/documentation Categorizes issue or PR as related to documentation. label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

No branches or pull requests

2 participants