1、下载KubeSphere的yaml资源清单文件
安装器:kubesphere-installer.yaml
集群配置文件:cluster-configuration.yaml
wget \
https://github.com/kubesphere/ks-installer/releases/download/v3.4.0/kubesphere-installer.yaml \
https://github.com/kubesphere/ks-installer/releases/download/v3.4.0/cluster-configuration.yaml
如图所示,下载成功
2、配置存储类,如下所示修改,即可
3、创建资源清单
kubectl apply -f kubesphere-installer.yaml
查看资源清单是否创建成功(需要等几秒再查)
kubectl get pod -o wide -n kubesphere-system
成功如下:
4、执行集群文件
kubectl apply -f cluster-configuration.yaml
5、第4步操作之后,查看日志(等一段时间,有点慢)
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
6、安装成功,如下所示(账号、密码)
Console: http://192.168.111.243:30880
Account: admin
Password: P@88w0rd