在k8s集群中安装KubeSphere
参考官方文档: https://kubesphere.com.cn/docs/quick-start/minimal-kubesphere-on-k8s/
安装依赖包
yum install -y socat conntrack
使用资源清单安装
kubectl apply -f https://ghproxy.com/https://github.com/kubesphere/ks-installer/releases/download/v3.2.1/kubesphere-installer.yaml
kubectl apply -f https://ghproxy.com/https://github.com/kubesphere/ks-installer/releases/download/v3.2.1/cluster-configuration.yaml
监控安装状态
# 每秒钟刷新一次pod状态
watch -n 1 kubectl get po -A
检查安装日志
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
查看svc是否正常运行
kubectl get svc/ks-console -n kubesphere-system