kubesphere多节点安装(官方参考https://kubesphere.io/zh/docs/installing-on-linux/introduction/multioverview/)
1、实验关闭master和woker的火墙服务
2、错误1:一台master和两台worker之间时间同步没有做好
https://editor.csdn.net/md/?articleId=124200140
https://editor.csdn.net/md/?articleId=124200552
上述是修改配置文件永久时间同步,还可以临时时间同步
3、下载kubekey前先执行以下命令export KKZONE=cn以确保您从正确的区域下载(对于访问github受限制问题时使用) 。
三个节点执行export KKZONE=cn
命令,此命令是临时的,重启虚拟机后会失效,把export KKZONE=cn写进vim ~/.bash_profile开机时会自动运行
env |grep KKZONE查看KKZONE状态
3、错误2:镜像拉取过程中报错,是没有加速器原因
解决:如果您从 dockerhub.io 下载镜像时遇到问题,建议提前准备仓库的镜像地址(即加速器)。请参见为安装配置加速器或为 Docker Daemon 配置仓库镜像:https://kubesphere.io/zh/docs/faq/installation/configure-booster/
config-sample.yaml配置文件中registryMirrors添加镜像地址:
我的私人阿里云镜像地址为:https://b8jowrzv.mirror.aliyuncs.com
2.启用 kubectl 自动补全
/root下执行
yum install -y bash-completion
echo 'source <(kubectl completion bash)' >>~/.bashrc
source .bashrc