Hi All, One question about etcd backup. i am using following command: ``` ETCDC . . .

debasish bhattacharya:
hi All,
One question about etcd backup.
i am using following command:

ETCDCTL_API=3 etcdctl --endpoints=<https://127.0.0.1:2379> \
  --cacert=&lt;trusted-ca-file&gt; --cert=&lt;cert-file&gt; --key=&lt;key-file&gt; \
  snapshot save &lt;backup-file-location&gt;

In this --endpoints i am using https://192.168.100.31:2379 which is --advertise-client-url ( check below)
--advertise-client-urls=<https://192.168.100.31:2379>
--cert-file=/etc/kubernetes/pki/etcd/server.crt
Is this correct? etcd backup exercises seems to be successful with this though i see in some solution some people insisting on using 127.0.0.1 from --listen-client-urls=<https://127.0.0.1:2379>,<https://192.168.100.31:2379>
Please let me know.

Mohamed Ayman:
The etcd is exposed on the private IP of the master and the localhost"127.0.0.1". So, you can use any one of them.

Giovanni Salvatore Barbato:
all end-point in listen-client-urls is suitable

Lisenet:
People use 127.0.0.1 because they usually run the backup command on a control plane.

unnivkn:
yup… 127.0.0.1 is your local host, which may sometimes act as your etcd server as well as your k8s master node.