Comments (2)
Similar to the problem described here, I have also observed that the vip does not jump to another control plane host when the apiserver on the host currently holding the vip is down but kube-vip is running. I would expect one of the running apiservers to take over the leader lease and assign the vip, but this does not happen. Compared to a haproxy/keepalived setup, this could be achieved by configuring an apiserver health check script within keepalived on the node. An apiserver failure would then result in a lower priority of the instance within the keepalived cluster and a vip jump to a working apiserver. Is this possible with kube-vip?
My context:
Kubernetes version: v1.27.10
Container Runtimes: containerd 1.6.28
kube-vip version: v0.7.2
from kube-vip.
Currently it's not possible since kube-vip use leaderelection package to achieve active-standby mode HA. Only when the leader failed to acquire leader -- talking to apiserver to update lease, other follower could acquire the leader by claim the lease.
But an improvement could be made is to add a node controller or a process to watch for current node's status, if current node is not ready for example 1 minute, fatal exit, then other pod could try acquire the leader. Just need be care with how much time should the kube-vip decide to exit.
from kube-vip.
Related Issues (20)
- Frequent connection reset by peer when accessing from another network HOT 1
- kube-vip remove all ip address on the eth device
- [0.7.2] Control plane VIP is not assigned on cluster cold start HOT 1
- Kube-vip pods stopped working and I lost access to my cluster HOT 2
- [Question] Does BGP Mode assign addresses to interfaces on the nodes? HOT 11
- Better support for offline deployment HOT 1
- The enable service security feature is not working in some environment due to the iptables-legacy executable not being found HOT 3
- Kube-vip depends on `nodename == hostname` for service election, which easily breaks HOT 2
- kube-vip didn't add VIP to the network interface HOT 3
- Node preferences/priorities for loadbalancer services
- Cannot start in just services mode in Equinix Metal HOT 4
- Allow vip_interface to be set on a per-node basis using node labels or annotations HOT 6
- kube-vip deletes route if second service with same IP has no backends HOT 5
- Cleanup on VIP/Iptables/IPVS on kube-vip deletion (SIGTERM or SIGINT) fails HOT 1
- Defaults the control plane LB mode to use masquerade forwarding method
- panic: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory when starting static pod HOT 1
- Support table mode for CP mode HOT 1
- The load balancer IP addresses are not being release after the LB-type Services are deleted HOT 1
- kube-vip announcing k3s nodeips as vips HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-vip.