I do understand that ETCD is a distributed reliable key value store .In Kubernetes it stores information about nodes,POD’sConfigs.secreate,accounts,roles,bindings. Kubectl get command you see from the ETCD server .Every kubectl command information that you see is from ETCD server. Every deployments that you make is updated to the ETCD server.
1)When you specifically talk about backup of ETCD database how this is going to help in case of failures ?
2)When we talk about POD’s that are created on the worker nodes , ETCD will only have the information which POD is running on which node . Will it also have the information that this POD was created as part yaml file imperative way vs declarative way ?
3)I take the backup of the ETCD data base and their is failure . What failures are we expecting like the failure of the control plane node itself ? What will be the impact of the Pods running on the worker nodes if the control plane node goes down ?
I basically ran the command kubectl -n kube-system describe pods etcd-controlplane . Just would like to understand the below :
what these urls or endpoints listed are ?
-advertise-client-urls=https://192.168.28.36:2379
–cert-file=/etc/kubernetes/pki/etcd/server.crt
–client-cert-auth=true
–data-dir=/var/lib/etcd
–experimental-initial-corrupt-check=true
–experimental-watch-progress-notify-interval=5s
–initial-advertise-peer-urls=https://192.168.28.36:2380
–initial-cluster=controlplane=https://192.168.28.36:2380
–key-file=/etc/kubernetes/pki/etcd/server.key
–listen-client-urls=https://127.0.0.1:2379,https://192.168.28.36:2379
–listen-metrics-urls=http://127.0.0.1:2381
–listen-peer-urls=https://192.168.28.36:2380
–name=controlplane
–peer-cert-file=/etc/kubernetes/pki/etcd/peer.crt
–peer-client-cert-auth=true
–peer-key-file=/etc/kubernetes/pki/etcd/peer.key
–peer-trusted-ca-file=/etc/kubernetes/pki/etcd/ca.crt
–snapshot-count=10000
1)What is the importance of ETCD server certificate ?
–cert-file=/etc/kubernetes/pki/etcd/server.crt
2)What is the importance of client-urls ?
–listen-client-urls=https://127.0.0.1:2379,https://192.168.28.36:2379
3)What is the importance of ca cert file ?
–peer-trusted-ca-file=/etc/kubernetes/pki/etcd/ca.crt