What is etcd-0 on my Kubernetes cluster?

June 1, 2019 269 views


When I run kubectl get cs I see etcd-0 running. Is this etcd the shared k/v store or is it something else? I ask because even though I see the service I don’t see any indication that I can interact with it.

➜  ~ kubectl get cs
NAME                 STATUS    MESSAGE             ERROR
controller-manager   Healthy   ok                  
scheduler            Healthy   ok                  
etcd-0               Healthy   {"health":"true"}  
1 Answer

The etcd-0 is in fact the component for the key/value store within the cluster. This is not accessible for general use. If you need a key/value store, you should deploy your own deployment or stateful set to provide the service for your workload. Some of the kube-system components leverage this instance for operation within the cluster in addition to the cluster operation itself.

Have another answer? Share your knowledge.