TASK [preinstall : Stop if kubernetes version is nonsupport] *******************
fatal: [localhost]: FAILED!=>{"assertion":"kubernetes_version.stdout is version('v1.15.0', '>=')",
"changed": false,
"evaluated_to": false,
"msg":"The current k8s version is not supported"}
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
//等待到以下输出则安装成功 登陆修改密码即可
**************************************************
######################################################## Welcome to KubeSphere! ########################################################
Console: http://10.0.0.12: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-12-23 11:56:55
#####################################################
5.安装成功 等待到以下输出则安装成功 登陆修改密码即可
把腾讯云上部署的kubesphere纳入到云下host集群管理
获取host的Secret
kubectl -n kubesphere-system get cm kubesphere-config -o yaml |grep -v "apiVersion"|grep jwtSecret
jwtSecret: "HryBNMQBjzXMJnzkxxxxxxxxxx"
获取host的Secret
kubectl -n kubesphere-system get cm kubesphere-config -o yaml |grep -v "apiVersion"|grep jwtSecret
jwtSecret: "HryBNMQBjzXMJnzkxxxxxxxxxx"
修改腾讯云上的集群角色为member
kubectl edit cc ks-installer -n kubesphere-system
//修改下面这两个参数 第二个从none改为member 然后保存等待安装器更新
authentication:
jwtSecret: "上个命令获得的Secret"
multicluster:
clusterRole: member
查看更新进度
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f