y33.第三章 Kubernetes从入门到精通 -- k8s集群环境搭建(六)

2.4.4.2 部署etcd集群

可更改启动脚本路径及版本等自定义配置

#部署etcd集群
root@k8s-deploy:/etc/kubeasz# ./ezctl setup k8s01 02

root@k8s-etcd1:~# export NODE_IPS="172.31.7.106 172.31.7.107 172.31.7.108"

root@k8s-etcd1:~# for ip in ${NODE_IPS}; do ETCDCTL_API=3 /usr/local/bin/etcdctl --endpoints=https://${ip}:2379 --cacert=/etc/kubernetes/ssl/ca.pem --cert=/etc/kubernetes/ssl/etcd.pem --key=/etc/kubernetes/ssl/etcd-key.pem endpoint health; done
https://172.31.7.106:2379 is healthy: successfully committed proposal: took = 8.911097ms
https://172.31.7.107:2379 is healthy: successfully committed proposal: took = 9

猜你喜欢

转载自blog.csdn.net/qq_25599925/article/details/124480184