Windows10上安装kubectl

详细步骤:

1,执行安装命令

1-1,以管理员身份运行Windows PowerShell,然后执行以下安装命令。

Install-Script -Name install-kubectl -Scope CurrentUser -Force

请将 [-DownloadLocation ]修改为要发布的路径。(需要网络能连上storage.googleapis.com)

install-kubectl.ps1 [-DownloadLocation ]

2,在用户的%USERPROFILE%路径下创建.kube/config。

3,确认

kubectl version

结果

Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:53:57Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.6-3+2356e69bf2c85a", GitCommit:"2356e69bf2c85a198942cd1e634db94c5c42d050", GitTreeState:"clean", BuildDate:"2019-02-26T22:27:01Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

结尾!

你可能感兴趣的:(Kubernetes)