-
开始安装下列命令:
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.2.1/kubesphere-installer.yaml kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.2.1/cluster-configuration.yaml
-
检查安装日志:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
-
如果是,请通过以下命令service的type为
LoadBalancer
,一会OKE就会为此service分配公网IP。之后使用kubectl get pod --all-namespaces
查看所有 Pod 是否在 KubeSphere 相关命名空间正常运行。kubectl get svc/ks-console -n kubesphere-system kubectl patch svc/ks-console -n kubesphere-system -p '{"spec":{"type":"LoadBalancer"}}' kubectl get svc/ks-console -n kubesphere-system -w
-
确保端口在安全组中打开
80
,并通过http://LoadBalancer的公网IP:80
,使用默认帐户和密码(admin/P@88w0rd)
访问 Web 控制台。 -
登录控制台后,您可以检查不同组件的状态。要使用相关服务,可能需要等待某些组件启动和运行。