https://github.com/kubesphere/ks-installer/blob/v3.4.0/README_zh.md
1. 部署 KubeSphere
wget https://github.com/kubesphere/ks-installer/releases/download/v3.4.0/kubesphere-installer.yaml
wget https://github.com/kubesphere/ks-installer/releases/download/v3.4.0/cluster-configuration.yaml
kubectl apply -f kubesphere-installer.yaml
kubectl apply -f cluster-configuration.yaml
# 查看部署进度及日志
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-installer -o jsonpath='{.items[0].metadata.name}') -f
kubectl get svc/ks-console -n kubesphere-system
2. 安装可插拔功能组件
##适用于 Kubeadm 创建的 Kubernetes 集群环境,提前需要安装好集群
kubectl create ns kubesphere-monitoring-system
kubectl -n kubesphere-monitoring-system create secret generic kube-etcd-client-certs \
--from-file=etcd-client-ca.crt=/etc/kubernetes/pki/etcd/ca.crt \
--from-file=etcd-client.crt=/etc/kubernetes/pki/etcd/healthcheck-client.crt \
--from-file=etcd-client.key=/etc/kubernetes/pki/etcd/healthcheck-client.key
#编辑 ClusterConfiguration 开启可插拔的功能组件
kubectl edit cc ks-installer -n kubesphere-system
#按功能需求编辑配置文件之后,退出等待生效即可,如长时间未生效请使用如下命令查看相关日志
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-installer -o jsonpath='{.items[0].metadata.name}') -f
3. 升级
# 注意: ks-installer会自动迁移cluster-configuration. 请勿自行修改.
wget https://github.com/kubesphere/ks-installer/releases/download/v3.4.0/kubesphere-installer.yaml
kubectl apply -f kubesphere-installer.yaml --force
#注意: 如果当前集群中部署的 KubeSphere 版本是 v3.4.0 或更早的版本,请先升级到v3.5.0。