#下载最新发行版本的kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl

#下载指定版本的kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl

#赋予可执行权限
chmod +x ./kubectl

#移动文件到path路径下
sudo mv ./kubectl /usr/local/bin/kubectl

#测试确保安装成功
kubectl version

#安装minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/

#start
minikube start

#报错:❌ Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.
#解决办法:
minikube start --force --driver=docker