参考
https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux
コマンドダウンロード
1 2 3 |
curl -LO https://storage.googleapis.com/kubernetes-release/release /`curl -s https://storage.googleapis.com/kubernetes-release/release /stable.txt`/bin/linux/amd64/kubectl |
実行権限つける
1 |
chmod +x ./kubectl |
実行できるパスへ移動
1 |
sudo mv ./kubectl /usr/local/bin/kubectl |
実行できるかチェック
1 |
kubectl version |
出力結果
1 2 3 4 5 6 |
Client Version: version.Info{Major:"1", Minor:"16", GitVersion :"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion :"go1.12.10", Compiler:"gc", Platform:"linux/amd64"} The connection to the server localhost:8080 was refused - did you specify the right host or port? |