kubesphere安装

kubesphere安装

下载资源文件

  • kubesphere-installer
  • cluster-configuration

执行命令

kubectl apply -f kubesphere-installer.yaml
kubectl apply -f kubesphere-config.yaml

查看日志 显示如下表示安装成功

查看日志脚本:
```bash
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
```
返回结果
```logs
#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://192.168.31.121:30880
Account: admin
Password: P@88w0rd

```

踩坑

  • k8s 是1.19.2,没有注意文档提示。安装补了v2.1.1
  • Internal error occurred: account is not active, 重启master节点电脑就ok了
  • 2.1.1 可以在 k8s 1.17.x 上运行

参考文档

  • kubesphere文档中心
  • kubesphere使用手册

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f

你可能感兴趣的:(kubesphere安装)