工具安装
yum install -y socat
yum install -y conntrack
yum install -y ebtables
yum install -y ipset
防火墙禁用
systemctl stop firewalld.service
systemctl disable firewalld.service
配置Docker加速器
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://vovncyjm.mirror.aliyuncs.com"],
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
EOF
sudo systemctl daemon-reload
2.KubeKey安装
```yaml export KKZONE=cn
curl -sfL https://get-kk.kubesphere.io | VERSION=v1.1.1 sh -
chmod +x kk
<a name="Sqz4p"></a>
# 3.K8s和KebeSphere安装
```yaml
./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.1