Any idea how to find data directory of etcd if its not deployed as static pod?

sarath s:
any idea how to find data directory of etcd if its not deployed as static pod?

Tej_Singh_Rana:
Hello, @sarath s
Please have a look into the etcd service configuration file.
https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/07-bootstrapping-etcd.md#configure-the-etcd-server

sarath s:
thanks i assume its /var/lib/etcd by default

Tahir Jemal:
@Tej_Singh_Rana is it always the endpoint localhost(

 --endpoints=<https://127.0.0.1:2379> \

) or is there any cases which is not localhost address?

Tej_Singh_Rana:
endpoint could be anything, not same for all the time.

Tej_Singh_Rana:
For example, if we’re taking backup in master node, then we can specify 127.0.0.1 IP address. Because etcd static pod is running in the host network.

Tej_Singh_Rana:
If we setup high availability etcd cluster with kubeadm then we have to use different IP Address https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm/