k8s离线部署学习-集群部署
程序员文章站
2022-07-13 21:11:53
...
软件下载
wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/latest/sealos
chmod +x sealos && cp sealos /usr/bin
wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/xxxxxx-1.19.0/kube1.19.0.tar.gz
集群初始化
sealos init --master 10.0.7.70 --node 10.0.7.125 --user root --passwd 123456 --pkg-url ./kube1.19.0.tar.gz --version v1.19.13
添加节点
sealos join --node 10.0.7.212
增加master
sealos join --master 10.0.7.156
删除节点
sealos clean --node 10.0.7.212
sealos clean --master 10.0.7.156
sealos clean --all
备份集群
sealos etcd save