本文共 471 字,大约阅读时间需要 1 分钟。
1.每台节点安装docker
centos7源下,docker1.12yum install -y docker2.主节点安装kubectl
安装最新kubectl,多试几次curl -LO $(curl -schmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
3.每个节点安装kubelet kubeadm
cat < /etc/yum.repos.d/kubernetes.repo[kubernetes]name=Kubernetesbaseurl=enabled=1gpgcheck=1repo_gpgcheck=1gpgkey=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
setenforce 0yum install -y kubelet kubeadmsystemctl enable kubelet && systemctl start kubelet转载地址:http://mpisa.baihongyu.com/