- 安装KubeSphere
#kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.1/kubesphere-installer.yaml
#kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.1/cluster-configuration.yaml
- 检查安装日志
#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
- 安装完成后,注意帐号密码
#####################################################
### Welcome to KubeSphere! ###
#####################################################
Account: admin
Password: P@88w0rd
- 查看 ks-console 服务
#kubectl get svc -n kubesphere-system
- 更改Service类型
# kubectl edit svc ks-console -n kubesphere-system
------------
type: LoadBalancer
- 获取访问地址(EXTERNAL-IP列的域名)
#kubectl get svc -n kubesphere-system
注意:使用默认帐户和密码(admin/P@88w0rd)登录控制台。
参考官方文档: