谷歌云创建GKE集群
# 创建GKE
# 版本
选择静态版本
# 节点池
启用集群自动扩缩器
添加Kubernetes 标签
# 特性
关闭Cloud Monitoring
# 在 GKE上安装 KubeSphere
使用 kubectl 安装 KubeSphere,以下命令仅用于默认的最小安装。
kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.2/kubesphere-installer.yaml kubectl apply -f https://github.com/kubesphere/ks-installer/releases/download/v3.3.2/cluster-configuration.yaml
1
2
3
4检查安装日志:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l 'app in (ks-install, ks-installer)' -o jsonpath='{.items[0].metadata.name}') -f
1安装完成后,会看到以下消息:
##################################################### ### Welcome to KubeSphere! ### ##################################################### Console: http://10.128.0.44:30880 Account: admin Password: P@88w0rd NOTES: 1. After logging into the console, please check the monitoring status of service components in the "Cluster Management". If any service is not ready, please wait patiently until all components are ready. 2. Please modify the default password after login. ##################################################### https://kubesphere.io 2020-xx-xx xx:xx:xx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 访问 KubeSphere 控制台
现在已经安装了 KubeSphere,您可以按照以下步骤访问 KubeSphere 的 Web 控制台。
# 配置NEG
修改ks-console的type为ClusterIP
cloud.google.com/neg: '{"exposed_ports": {"80":{"name": "birenchong-devops-kubesphere-neg"}}}'
1
配置负载均衡和域名DNS解析
Last Updated: 2023/11/08, 14:45:54