김경준:
Hi all, i have a question about etcd restore.
In k8s docs and CKA course, i learned we can perform restore operation just with this below’s simple command.
$ETCDCTL_API=3 etcdctl snapshot restore <snapshotdb> --data-dir=<NEW-DIRECTORY>
But when i searched about etcd restore method in google, many blogs say we have to give more options to etcd restore like below.
ETCDCTL_API=3 etcdctl snapshot restore <snapshotdb> --name <NODE-NAME> \
--initial-cluster <NODE-NAME1>=https://<IP1>:2380 \
--initial-advertise-peer-urls https://<NODE-IP>:2380 \
--data-dir <NEW-DIRECTORY>
My question is, should i have to give more options like second example? or just typing simple command like k8s docs?
I think first example is right because additional options(initial-cluster,) are already configured in existing etcd config file(/etc/kubernetes/manifest/etcd.yaml). Is it right?