etcd
wuxingge
这个作者很懒,什么都没留下…
展开
-
kubeadm安装的etcd备份恢复
安装etcdctl命令行etcd节点安装etcdctlyum install -y etcdecho 'export ETCDCTL_API=3' >> /etc/profileetcd集群查看列出成员etcdctl --endpoints=https://192.168.41.30:2379,https://192.168.41.31:2379,https://192.168.41.32:2379 --cert=/etc/kubernetes/pki/etcd/server.c原创 2021-09-12 08:36:14 · 455 阅读 · 2 评论 -
etcd增加节点与删除节点
etcd增加节点新节点部署etcd(此处省略)在已有节点添加新节点etcdctl member add etcd-server-7-11 https://10.4.7.11:2380Added member named etcd-server-7-11 with ID 4e59b8e9d0462cf3 to clusterETCD_NAME="etcd-server-7-11"ETCD_INITIAL_CLUSTER="etcd-server-7-22=https://10.4.7.22:2原创 2020-07-08 15:59:59 · 5008 阅读 · 0 评论 -
etcd操作
写入一个keyetcdctl set foo baretcdctl set /coreos.com/network/config ‘{“Network”: “172.7.0.0/16”, “Backend”: {“Type”: “host-gw”}}’读取keyetcdctl get fooetcdctl get /coreos.com/network/config删除keyetcdctl rm foo增加一个新的节点新加的节点取名为 infra3, peerURLs 是 https://原创 2020-06-27 11:01:35 · 404 阅读 · 0 评论