在ubuntu上多节点安装KubeSphere
官方地址:
https://kubesphere.io/zh/docs/installing-on-linux/introduction/multioverview/
我的电脑配置:

官方文档提的系统配置要求

下载 KubeKey
export KKZONE=cn
下载文件
curl -sfL https://get-kk.kubesphere.io | VERSION=v1.2.1 sh -
修改文件的权限:
chmod +x kk
创建配置文件
./kk create config [--with-kubernetes version] [--with-kubesphere version] [(-f | --file) path]
调用kk脚本,然后创建配置文件
不写就默认的咯,最新的。输出不管,默认的就行。
./kk create config --with-kubernetes v1.20.4 --with-kubesphere v3.2.1
执行完以后就有config-sample.yaml
文件
在此文件下,添加其他节点的账号密码IP,这样子自动给其他机器去安装了。
apiVersion: kubekey.kubesphere.io/v1alpha1
kind: Cluster
metadata:
name: sample
spec:
hosts:
- {name: k8smaster, address: 192.168.220.153, internalAddress: 192.168.220.153, user: k8s, password: 123456}
- {name: k8snode1, address: 192.168.220.154, internalAddress: 192.168.220.154, user: k8s, password: 123456}
- {name: k8snode2, address: 192.168.220.155, internalAddress: 192.168.220.155, user: k8s, password: 123456}
使用配置文件创建集群
./kk create cluster -f config-sample.yaml


安装成功了
根据提示,访问
http://192.168.220.156:30880/

第一次登录需要设置新密码


