what are the Kubernetes modules directly communicating with etcd

6/24/2019

I was trying to understand how exactly the kubernetes modules interacts with etcd. I understand kubernetes modules by themselves are stateless and they keep the states in etcd. But I am confused when it comes to how modules are interacting with etcd. I see conflicting texts on this, some saying all etcd interactions are happening through apiserver and some others say all the modules interacts with etcd.

I am looking for the possibility of changing etcd endpoint and restarting integration points so that they can work with new etcd instance. I do not have time to go look in to the code to understand this part so hoping the someone here can help me on this.

-- joe
etcd
google-kubernetes-engine
kubernetes
kubernetes-ingress
project-calico

2 Answers

6/24/2019

If a kubernete component want to communicate with etcd, it must know the endpoint of etcd.

If you check the spec config of these components, you will find the correct answer: only api-server directly talk to etcd.

-- menya
Source: StackOverflow

6/24/2019

All kubernetes components, such as, kubelet, kubeproxy, scheduler, controllers etc. interact with etcd through API server. They dont directly talk to etcd.

if you change etcd endpoint, then same should be updated in api server configuration.

-- P Ekambaram
Source: StackOverflow