下载sealos命令
wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/latest/sealos && \ chmod +x sealos && mv sealos /usr/bin
下载资源包
wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/7b6af025d4884fdd5cd51a674994359c-1.18.0/kube1.18.0.tar.gz
批改 hostname
# 留神主机名不要有特殊符号hostnamectl set-hostname your-new-host-name
查看批改后果
hostnamectl status
设置 hostname 解析
echo "127.0.0.1 $(hostname)" >> /etc/hosts
开始装置集群
sealos init --passwd 123456 \ --master 192.168.253.130 --master 192.168.253.131 --master 192.168.253.132 \ --node 192.168.253.133 \ --pkg-url /root/kube1.18.0.tar.gz \ --version v1.18.0
centos版本为7.*,倡议升高kube-proxy版本,修复在集群内解释不了外部命名空间等地址的问题
kubectl -n kube-system set image daemonset/kube-proxy *=registry.aliyuncs.com/k8sxio/kube-proxy:v1.17.6