Working with etcd
Cluster data is stored in a key-value store in a Kubernetes cluster called etcd. The cluster data includes cluster state information such as pod state data, node state data, and configurations. As this data is critical for Kubernetes to orchestrate the workloads to the desired state, it stands to reason that it should be backed up periodically.
To access the etcd cluster inside the Kubernetes cluster, we can run the following command:
kubectl get po -n kube-system
This will list all the pods currently running in the kube-system
namespace:
Figure 3.7 – Check the current etcd pod status
In the following sections, we’ll take a closer look at the etcd cluster pod and learn all the related information that will be useful in the actual CKA exam.
Exploring the ETCD cluster pod
To get a closer look at the etcd pod that we have, use the following command:
kubectl describe po <etcd-podname...