株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

参考

https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux

コマンドダウンロード

curl -LO https://storage.googleapis.com/kubernetes-release/release
/`curl -s https://storage.googleapis.com/kubernetes-release/release
/stable.txt`/bin/linux/amd64/kubectl

実行権限つける

chmod +x ./kubectl

実行できるパスへ移動

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

実行できるかチェック

kubectl version

出力結果

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?

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)