安装 KubeSphere

KubeSphere Core (ks-core) 是 KubeSphere 的核心组件,为扩展组件提供基础的运行环境。KubeSphere Core 安装完成后,即可访问 KubeSphere Web 控制台。

1. 安装 KubeSphere Core

在集群节点上,执行以下命令安装 KubeSphere Core:

chart=oci://hub.kubesphere.com.cn/kse/ks-core 
version=1.2.3-20251118 
helm upgrade --install -n kubesphere-system --create-namespace ks-core $chart --debug --wait --version $version --reset-values --set extension.imageRegistry=swr.cn-north-9.myhuaweicloud.com/ks

注意
如果您访问 Docker Hub 受限,请在上述命令后添加如下配置,修改扩展组件镜像的拉取地址:
--set extension.imageRegistry=swr.cn-north-9.myhuaweicloud.com/ks

2. 验证安装

如果显示如下信息,则表明 ks-core 安装成功:

NOTES: 
Thank you for choosing KubeSphere Helm Chart. 

Please be patient and wait for several seconds for the KubeSphere deployment to complete. 

1. Wait for Deployment Completion 

    Confirm that all KubeSphere components are running by executing the following command: 

    kubectl get pods -n kubesphere-system 

2. Access the KubeSphere Console 

    Once the deployment is complete, you can access the KubeSphere console using the following URL: 

    http://192.168.6.10:30880 

3. Login to KubeSphere Console 

    Use the following credentials to log in: 

    Account: admin 
    Password: P@88w0rd 

NOTE: It is highly recommended to change the default password immediately after the first login. 

For additional information and details, please visit https://kubesphere.io. 

3. 访问 Web 控制台

从成功信息中的 Console、Account 和 Password 参数分别获取 KubeSphere Web 控制台的 IP 地址、管理员用户名和管理员密码,并使用网页浏览器登录 KubeSphere Web 控制台。

说明
取决于您的网络环境,您可能需要配置流量转发规则并在防火墙中放行 30880 端口。

参考链接

4. 后续配置

此时,Web 控制台仅提供 KubeSphere 的核心功能。若要体验更多功能,还需在扩展中心安装扩展组件。

重要
在使用 KubeSphere 及扩展组件之前,请先激活 KubeSphere 和扩展组件。

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐