在 Kubernetes 上安装 KubeSphere

编辑于 2021-12-25 08:45:32 阅读 1083

KubeSphere 是一款基于 Kubernetes 的开源企业级容器平台,同时也提供定制化服务,服务收费

KubeSphere和Kubernetes Dashboard是一类的,比后者界面更漂亮

WX202112251654312x.jpg

前提

可以参考官网的文档 准备工作

其中准备默认 StorageClass 是安装 KubeSphere 的前提条件,详见 k8s 使用 StorageClass 动态生成 NFS 类型的 PV

部署 KubeSphere

1、安装

kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.2.1/kubesphere-installer.yaml
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.2.1/cluster-configuration.yaml

2、检查安装日志

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

3、使用 kubectl get pod --all-namespaces 查看所有 Pod 是否在 KubeSphere 的相关命名空间中正常运行。如果是,请通过以下命令检查控制台的端口(默认为 30880):

kubectl get svc/ks-console -n kubesphere-system

4、确保在安全组中打开了端口 30880,并通过 NodePort (IP:30880) 使用默认帐户和密码 (admin/P@88w0rd) 访问 Web 控制台。

参考

https://kubesphere.io/zh/docs/quick-start/minimal-kubesphere-on-k8s/

广而告之,我的新作品《语音助手》上架Google Play了,欢迎下载体验