企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
参考文档:https://github.com/kubesphere/ks-installer/blob/master/README_zh.md **** **1. 最小化安装** ```shell # kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/kubesphere-installer.yaml # kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.0/cluster-configuration.yaml ``` <br/> **2. 等待 ks-installer 状态变为 Running,预计 20min 以上** ```shell # kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kubesphere-system ks-installer-6976cf49f5-824rg 0/1 Running 0 3m12s ``` <br/> **3. 查看部署进度及日志** >[info]预计使用的时间比较长,我安装的时候用了 1h 以上。 ```shell # kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-installer -o jsonpath='{.items[0].metadata.name}') -f -- 或者等待所有的 kubesphere 资源状态全部变为 Running # kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kubesphere-controls-system default-http-backend-5bf68ff9b8-h8ctr 1/1 Running 0 35m kubesphere-controls-system kubectl-admin-6667774bb-ggwlw 0/1 ContainerCreating 0 4m16s kubesphere-monitoring-system alertmanager-main-0 0/2 ContainerCreating 0 29m kubesphere-monitoring-system alertmanager-main-1 2/2 Running 0 29m kubesphere-monitoring-system alertmanager-main-2 0/2 ContainerCreating 0 29m kubesphere-monitoring-system kube-state-metrics-7bdc7484cf-lckkl 3/3 Running 0 30m kubesphere-monitoring-system node-exporter-85w5q 2/2 Running 0 30m kubesphere-monitoring-system node-exporter-hcxrp 2/2 Running 0 30m kubesphere-monitoring-system node-exporter-r4hsf 2/2 Running 0 30m kubesphere-monitoring-system notification-manager-operator-7d44854f54-wmqmp 0/2 ContainerCreating 0 29m kubesphere-monitoring-system prometheus-k8s-0 0/2 Pending 0 29m kubesphere-monitoring-system prometheus-k8s-1 0/2 PodInitializing 0 29m kubesphere-monitoring-system prometheus-operator-8955bbd98-5bgst 2/2 Running 0 30m kubesphere-system ks-apiserver-7c8c448bbb-l6qp6 0/1 ContainerCreating 0 35m kubesphere-system ks-console-54bd5bcbc6-wbzgx 1/1 Running 0 35m kubesphere-system ks-controller-manager-bdbb456f4-cgthq 1/1 Running 0 35m kubesphere-system ks-installer-6976cf49f5-824rg 1/1 Running 0 49m ``` <br/> **4. 等到 KubeSphere 资源状态全部变为 Running,获取 KubeSphere UI 界面服务端口** ```shell # kubectl get svc/ks-console -n kubesphere-system NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE ks-console NodePort 10.110.190.158 <none> 80:30880/TCP 102m ``` >[info]可以看到服务端口为:30880 <br/> **5. 用`http://任一节点IP:30880`访问** >[info]默认账号/密码:`admin/P@88w0rd` ![](https://img.kancloud.cn/d4/e0/d4e0b3e204b0351ecd2a1ab1689ef225_2531x690.png)