1.重置阿里云服务器
这是KubeSphere安装官方要求的硬件配置
这边如果自己得阿里云不够 可以跟我一样 搞个临时得先用,按照流量计费。
之前安装了一些乱起八糟的导致硬件内存不够,我这边重置了阿里云服务器。最好还是开通个大点的服务器,保证后续集群的安装。
2.git安装的时候缓慢
重置完在最后一步
./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.1
需要从外网拉数据,那是相当慢,每次都信号灯断了还没下载好,需要登录重新点了
首先我们可以设置连接终端的工具信号灯时间为60秒,这样一分钟
解决办法如下:
Options->Session Options->Terminal->Anti-idle->勾选Send protocol NO-OP
(中文版:选项->会话选项->终端->反空闲->发送协议NO-OP)
其次,我们设置KKZONE=cn这是必须的,不然三天三夜也下载不完。
export KKZONE=cn
这样重新拉取就可以了。
这样我们一个空的服务器,不需要安装Docker,Kubernetes(kubelet、kubeadm、kubectl)KubeSphere等,只需要一条命令所有组件都会自动安装完成。
全程大概二十分钟左右
出现这个表示在安装KubeSphere了,这里时间可能会很久
如果中通断网或者超时可以用升级命令再试下
./kk upgrade –with-kubernetes v1.21.5 –with-kubesphere v3.2.1
3.登录KubeSphere
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
```java
#####################################################
### Welcome to KubeSphere! ###
#####################################################
Console: http://172.26.135.0:30880
Account: admin
Password: P@88w0rd
NOTES:
1. After you log into the console, please check the
monitoring status of service components in
"Cluster Management". If any service is not
ready, please wait patiently until all components
are up and running.
2. Please change the default password after login.
#####################################################
https://kubesphere.io 2022-04-24 21:30:37
#####################################################
INFO[21:30:40 CST] Installation is complete.
Please check the result using the command:
kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f
You have mail in /var/spool/mail/root
*看控制台信息,登录名密码和端口号*
看到这个,表示KubeSphere以及部署完成了
访问:http://118.31.113.182:30880
用户名:admin
密码:P@88w0rd
第一次登录,会提示修改密码