Hello,
In all the videos I watched the restore is done via a similar command:
ETCDCTL_API=3 etcdctl --endpoints=https://[127.0.0.1]:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt \
--name=master \
--cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key \
--data-dir /var/lib/etcd-from-backup \
--initial-cluster=master=https://127.0.0.1:2380 \
--initial-cluster-token etcd-cluster-1 \
--initial-advertise-peer-urls=https://127.0.0.1:2380 \
snapshot restore /tmp/snapshot-pre-boot.db
But when I look at the k8s guide, the command listed is much simpler (no matter if using the deprecated etcdctl or etcdutl):
Which is the correct way?
I used the shortest version in one or two exercise and the backup was restored with no issue. I also did not have to modify the etcd configuration to point to the new etc folder.
I am a bit confused, so thanks in advance for the clarification.