參考文檔: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`

- k8sv1.21.14集群搭建
- 0. 適用版本
- 1. 集群架構
- 2. 機器初始化
- 3. 安裝Docker
- 4. 配置k8s鏡像倉庫
- 5. 安裝k8s核心工具
- 6. 初始化主節點
- 7. node節點加入集群
- 8. 安裝Pod網絡插件
- 9. 測試k8s集群
- k8sv1.26.2集群搭建
- 0. 適用版本
- 1. 集群架構
- 2. 機器初始化
- 3. 安裝containerd
- 4. 配置k8s鏡像倉庫
- 5. 安裝k8s核心工具
- 6. 初始化主節點
- 7. node節點加入集群
- 8. 安裝Pod網絡插件
- 9. 測試k8s集群
- k8sDashboard安裝
- k8s安裝KubeSphere
- 1. 前提條件
- 2. 安裝KubeSphere
- k8s常用命令