-bash: etcdctl: command not found
1、执行etcd备份,发现命令找不到,接下来安装命令
wget "https://github.com/coreos/etcd/releases/download/v3.3.9/etcd-v3.3.9-linux-amd64.tar.gz"
解压
tar -xvf etcd-v3.3.9-linux-amd64.tar.gz
移动命令文件
sudo mv etcd-v3.3.9-linux-amd64/etcd* /usr/local/bin/
2、安装完成命令后,执行备份
[root@master01 ~]# ETCDCTL_API=3 etcdctl snapshot save /data/backup/etcd-snapshot.db \ > --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt \ > --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key Snapshot saved at /data/backup/etcd-snapshot.db
参考 https://cloud.tencent.com/developer/ask/sof/114550682/answer/129627831
https://www.jianshu.com/p/511792c7229d