下载 KubeKey
# 使用Root用户
sudo su
export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v2.0.0 sh -
chmod +x kk
# 开始安装
./kk create cluster
多节点安装
# 生成配置文件
./kk create config --with-kubesphere [version]
# 配置node节点的ssh
# 添加节点地址
vim config-sample.yaml
hosts:
- {name: master, address: 10.144.202.66, internalAddress: 10.144.202.66}
- {name: node1, address: 10.144.202.67, internalAddress: 10.144.202.67}
# 开始安装
./kk create cluster -f config-sample.yaml
添加节点
./kk add nodes -f config-sample.yaml