1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| yum update yum install git python-pip -y pip install pip --upgrade -i https://mirrors.aliyun.com/pypi/simple/ pip install ansible==2.6.18 netaddr==0.7.19 -i https://mirrors.aliyun.com/pypi/simple/ ssh-keygen -t rsa -b 2048 -N '' -f ~/.ssh/id_rsa
export release=2.2.1 curl -C- -fLO --retry 3 https://github.com/easzlab/kubeasz/releases/download/${release}/easzup chmod +x ./easzup ./easzup -D -d 19.03.5 -k v1.16.9
./easzup -S
docker exec -it kubeasz easzctl start-aio .验证安装 如果提示kubectl: command not found,退出重新ssh登录一下,环境变量生效即可
$ kubectl version $ kubectl get node $ kubectl get pod -A $ kubectl get svc -A
|