找不到 kubectl wait 命令
Kubectl wait command cannot be found
我正在尝试使用 kubernetes 文档中概述的 kubectl wait 命令:https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait
当我 运行 它时,我得到
Error: unknown command "wait" for "kubectl"
文档确实提到命令是 "experimental"。我需要做些什么来表明我想使用实验性命令吗?所有其他 kubectl 命令都可以正常工作。
我在 windows 中使用 kubectl 命令,作为 gcloud 组件安装。我已经更新了所有组件。 kubectl 版本 returns:
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.7-gke.4", GitCommit:"618716cbb236fb7ca9cabd822b5947e298ad09f7", GitTreeState:"clean", BuildDate:"2019-02-05T19:22:29Z", GoVersion:"go1.10.7b4", Compiler:"gc", Platform:"linux/amd64"}
我不确定 kubectl wait
是在哪个版本中引入的,但我有:
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:08:12Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
对我有用:
~ kubectl wait --help
Experimental: Wait for a specific condition on one or many resources.
更新到最新版本就可以了
我正在尝试使用 kubernetes 文档中概述的 kubectl wait 命令:https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait
当我 运行 它时,我得到
Error: unknown command "wait" for "kubectl"
文档确实提到命令是 "experimental"。我需要做些什么来表明我想使用实验性命令吗?所有其他 kubectl 命令都可以正常工作。
我在 windows 中使用 kubectl 命令,作为 gcloud 组件安装。我已经更新了所有组件。 kubectl 版本 returns:
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.7-gke.4", GitCommit:"618716cbb236fb7ca9cabd822b5947e298ad09f7", GitTreeState:"clean", BuildDate:"2019-02-05T19:22:29Z", GoVersion:"go1.10.7b4", Compiler:"gc", Platform:"linux/amd64"}
我不确定 kubectl wait
是在哪个版本中引入的,但我有:
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.3", GitCommit:"721bfa751924da8d1680787490c54b9179b1fed0", GitTreeState:"clean", BuildDate:"2019-02-01T20:08:12Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
对我有用:
~ kubectl wait --help
Experimental: Wait for a specific condition on one or many resources.
更新到最新版本就可以了