先根据etcd找到hostpatch 持久化目录,/var/lib/etcd
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
进入pod备份: ETCDCTL_API=3 etcdctl snapshot save snap.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.keyView Code
snap.db已经保存备份完成,对应数据存在/etc/kubernetes/manifests中
标签:pki,kubernetes,--,备份,etc,etcd,k8s From: https://www.cnblogs.com/tigergaonotes/p/17344049.html