kubectl在集群外的安装

1、For example, to download version v1.9.0 on Linux, type:

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl

2、Make the kubectl binary executable

chmod +x ./kubectl

3、Move the binary in to your PATH.

sudo mv ./kubectl /usr/local/bin/kubectl

4、写进配置

mkdir -p ~/.kube
cp conf/admin.kubeconfig ~/.kube/config

猜你喜欢

转载自blog.csdn.net/watcher0111/article/details/79661314