etcd备份 SoulChild 收录于 kubernetes databases 2020-08-17 09:12 约 59 字 预计阅读 1 分钟 - 次阅读 警告本文最后更新于 2020-08-26 10:57,文中内容可能已过时。命令:1 etcdctl --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/peer.crt --key=/etc/kubernetes/pki/etcd/peer.key 集群节点列表:1 2 3 4 5 ETCDCTL_API=3 etcdctl \ --cacert=/etc/kubernetes/pki/etcd/ca.crt \ --cert=/etc/kubernetes/pki/etcd/peer.crt \ --key=/etc/kubernetes/pki/etcd/peer.key \ member list etcd备份:1 2 3 4 5 ETCDCTL_API=3 etcdctl \ --cacert=/etc/kubernetes/pki/etcd/ca.crt \ --cert=/etc/kubernetes/pki/etcd/peer.crt \ --key=/etc/kubernetes/pki/etcd/peer.key \ snapshot save 202008131304.db etcd恢复:1 2 3 4 5 ETCDCTL_API=3 etcdctl \ --cacert=/etc/kubernetes/pki/etcd/ca.crt \ --cert=/etc/kubernetes/pki/etcd/peer.crt \ --key=/etc/kubernetes/pki/etcd/peer.key \ snapshot restore 202008131304.db 请我喝杯水 赞赏 微信号 微信打赏Please enable JavaScript to view the comments powered by giscus.