kubesphere多节点安装
当你安装完以后,有以下提示:
18:07:39 CST Pipeline[CreateClusterPipeline] execute successfully
Installation is complete.
Please check the result using the command:
kubectl get pod -A
root@k8snode1:~#
为什么会这样子呢?
不看配置文件不知道,一看才知道是我偷懒的问题。
官方文档
- export KKZONE=cn
- 下载KK
curl -sfL https://get-kk.kubesphere.io | VERSION=v2.3.0 sh -
- 修改KK为可执行的权限
chmod +x kk
- 创建配置文件
./kk create config [--with-kubernetes version] [--with-kubesphere version] [(-f | --file) path]
我就是在这个步骤出问题了
什么问题呢?
我没有--with-kubernetes version
和 --with-kubesphere version
也就是创建出来的是没有kubesphere的
- 修改配置文件
- 执行创建命令
./kk create cluster -f config-sample.yaml
你需要with xxx 指定版本号,才会安装kubesphere的,才会有以下的结果:
#####################################################
### Welcome to KubeSphere! ###
#####################################################
Console: http://192.168.0.2:30880
Account: admin
Password: P@88w0rd
NOTES:
1. After you log into the console, please check the
monitoring status of service components in
the "Cluster Management". If any service is not
ready, please wait patiently until all components
are up and running.
2. Please change the default password after login.
#####################################################
https://kubesphere.io 20xx-xx-xx xx:xx:xx
#####################################################