kubectl
到下面地址下载kubectl客户端,cp到/usr/local/bin之后chmod +x
https://github.com/kubernetes/kubernetes/releases
docker
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
rpm --import http://mirrors.aliyun.com/docker-ce/linux/centos/gpg
yum makecache fast
yum -y install docker-ce
systemctl start docker && systemctl status docker && systemctl enable docker
minikube
https://github.com/kubernetes/minikube/releases
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
start
minikube start image-mirror-country='cn' --memory=6000 --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
ERROR:Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges
useradd minikube
passwd minikube
usermod -aG docker minikube
su minikubeminikube start image-mirror-country='cn' --memory=6000 --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers