In this section, we will take a look at ETCD role in kubernetes
Nodes
, PODS
, Configs
, Secrets
, Accounts
, Roles
, Bindings
and Others
.kubectl get
command is from the ETCD Server
.ETCD
by downloading ETCD Binaries yourself$ wget -q --https-only "https://github.com/etcd-io/etcd/releases/download/v3.3.11/etcd-v3.3.11-linux-amd64.tar.gz"
kubeadm
then kubeadm will deploy etcd server for you as a pod in kube-system
namespace.
$ kubectl get pods -n kube-system
$ kubectl exec etcd-master -n kube-system -- sh -c "ETCDCTL_API=3 etcdctl --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key --cacert=/etc/kubernetes/pki/etcd/ca.crt get / --prefix --keys-only"
Kubernetes Stores data in a specific directory structure, the root directory is the registry
and under that you have various kubernetes constructs such as minions
, nodes
, pods
, replicasets
, deployments
, roles
, secrets
and Others
.
etcd.service
configuration. The --initial-cluster
option where you need to specify the different instances of the etcd service.
K8s Reference Docs: