Comments (5)
I think it's kube-apiserver. Here's my test steps
- stop kube-controller-manager and kube-scheduler on 3 master nodes => 3 ip
- stop all workers (make sure no kube-proxy and kubelet) => 3 ip
- stop kube-apiserver on 1 master node => 2 ip
- start kube-apiserver on 1 master node => 3 ip
from kube-vip.
Could you elaborate more of your setup. is kube-apiserver is running as a process?
Maybe the ipvs LB can watch something else. For example, the kubernetes endpoint,
What do you refer to kubernetes endpoint
in this case, if there is no node object, how do you get control plane IP from kube-apiserver?
from kube-vip.
- Yes. kube-apiserver is running as a process in my setup
endpoints/endpointslice
named kubernetes
. kube-apiserver process automatically maintains a endpoints, endpointslice and service named kuberntes in the default namespace.
$ kubectl get endpoints kubernetes -o yaml
apiVersion: v1
kind: Endpoints
metadata:
creationTimestamp: "2024-03-07T05:33:57Z"
labels:
endpointslice.kubernetes.io/skip-mirror: "true"
name: kubernetes
namespace: default
resourceVersion: "5728"
uid: 8ce9c4e8-3df7-47fd-b80b-cc7d7e72ea39
subsets:
- addresses:
- ip: 30.1.1.2
- ip: 30.1.1.3
- ip: 30.1.1.4
ports:
- name: https
port: 8443
protocol: TCP
from kube-vip.
What will update the addresses section of that endpoint?
subsets:
- addresses:
- ip: 30.1.1.2
- ip: 30.1.1.3
- ip: 30.1.1.4
from kube-vip.
Ok I checked my env as well, looks like that ip is picked from node's internal ip. Then this endpoint object could be a source of truth.
Then indeed a new option could be added for ipvs, to use endpoint object to find the backend node.
from kube-vip.
Related Issues (20)
- Kube-VIP does not recover after network outages
- Report the use of components with vulnerabilities in kube-vip
- DHCP for control plane VIP fails: got an error while the discovery request: no matching response packet received
- [Question / Bug] kube-vip keeps assigning used IP to LoadBalancer HOT 4
- [LoadBalancerClass] Better defaulting for Service objects
- Default value of vip_cidr HOT 2
- Using TCP/UDP on the same port, same service and IP HOT 9
- nodelabel is not applied after a leader change HOT 1
- [Quetion] Is CP load balance supported for BGP mode?
- Egress pod startup delay HOT 1
- Multiple interfaces with kube-vip
- [Bug or Feature?] kube-vip drops VIP when kube-apiserver unreachable. HOT 1
- How to set vip for pods with hostNetwork
- Consistent DHCP renew failure analysis HOT 6
- CrashLoopBackOff Error in kube-vip Daemonset Due to Missing iptables Executable with --lbForwardingMethod masquerade
- kube-vip does not re-add control plane IP to IPVS when kube-apiserver becomes reachable
- Generated manifest contain "status", leading to errors in ArgoCD HOT 1
- Load balancing load balancer when using ARP mode seems to be not working
- kube-vip on ubuntu 22 Leaderelection lost. HOT 3
- svc_election=true will cause load balancers with the same IP to appear on different servers 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.