Giter Site home page Giter Site logo

Comments (2)

jusch23 avatar jusch23 commented on June 22, 2024

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.

lubronzhan avatar lubronzhan commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.