ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
kind创建 kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: #- role: control-plane #- role: control-plane - role: control-plane - role: worker - role: worker - role: worker 备份 ~~~yaml ETCDCTL_API=3 etcdctl --endpoints https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/healthcheck-client.crt --key /etc/kubernetes/pki/etcd/healthcheck-client.key snapshot save ./snapshot.db ~~~ 恢复 ETCDCTL\_API=3 etcdctl snapshot restore /var/lib/etcd/member/backup.db --name etcd \\ \--initial-cluster etcd=http://172.16.0.112:2380\\ \--initial-advertise-peer-urls [http://172.16.0.112:2380](http://172.16.0.112:2380) \\ \--skip-hash-check=true \\ \--data-dir=/var/lib/etcd/test2 etcd \\ \--name etcd \\ \--listen-client-urls [http://172.16.0.112:2379](http://172.16.0.112:2379) \\ \--advertise-client-urls [http://172.16.0.112:2379](http://172.16.0.112:2379) \\ \--listen-peer-urls [http://172.16.0.112:2380](http://172.16.0.112:2380) ~~~shell kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" |\ tr -s '[[:space:]]' '\n' |\ sort |\ uniq -c ~~~