在kubernet上安装kubesphere
时间: 2024-04-17 21:17:25 浏览: 126
安装 KubeSphere 需要以下步骤:
1. 在 Kubernetes 集群上安装 Helm
2. 添加 KubeSphere Helm 仓库
```
helm repo add kubesphere https://charts.kubesphere.io
helm repo update
```
3. 创建一个名为 kubesphere-system 的命名空间
```
kubectl create ns kubesphere-system
```
4. 部署 KubeSphere
```
helm install kubesphere kubesphere/kubesphere \
--namespace kubesphere-system \
--version v3.1.1 \
--set ks.console.runtimeClass=nginx \
--set ks.apigateway.runtimeClass=nginx \
--set ks.apiserver.runtimeClass=nginx \
--set openpitrix.operatorTag=v3.1.1 \
--set klusterlet.operatorTag=v3.1.1 \
--set ks.enabled=true
```
5. 等待 KubeSphere 部署完成
```
kubectl rollout status -n kubesphere-system sts/ks-console -w
```
6. 部署完成后,您可以使用以下 URL 访问 KubeSphere 控制台:
```
http://<Kubernetes 集群中任意一个节点的 IP 地址>:30880
```
您可以使用 admin 用户名和 admin 密码登录。
阅读全文
相关推荐















