• Vmware-15.5
  • CentOS-7.x

    1.环境安装

  1. 工具安装

    1. yum install -y socat
    2. yum install -y conntrack
    3. yum install -y ebtables
    4. yum install -y ipset
  2. 防火墙禁用

    1. systemctl stop firewalld.service
    2. systemctl disable firewalld.service
  3. 配置Docker加速器

    1. sudo mkdir -p /etc/docker
    2. sudo tee /etc/docker/daemon.json <<-'EOF'
    3. {
    4. "registry-mirrors": ["https://vovncyjm.mirror.aliyuncs.com"],
    5. "exec-opts": ["native.cgroupdriver=systemd"],
    6. "log-driver": "json-file",
    7. "log-opts": {
    8. "max-size": "100m"
    9. },
    10. "storage-driver": "overlay2"
    11. }
    12. EOF
    13. 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

  1. <a name="Sqz4p"></a>
  2. # 3.K8s和KebeSphere安装
  3. ```yaml
  4. ./kk create cluster --with-kubernetes v1.20.4 --with-kubesphere v3.1.1

image.png