Joe:
Can anyone provide any insight about the following difference regarding snapshot restore
In the link here https://github.com/mmumshad/kubernetes-cka-practice-test-solution-etcd-backup-and-restore
The restore command looks like below
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
However, in the Video: Section 6: ClusterMaintenance: 132. Solution-Backup and Restore Only the following line is specified
ETCDCTL_API=3 etcdctl snapshot restore <locaton>
--data-dir=<new backup etcd directory>
The second command seems to work fine - so my question is… - do I need to specify all the extra parameters as in the first command or is the second command sufficient?