【发布时间】:2018-03-18 12:32:06
【问题描述】:
我使用 k8s 版本 1.5.2 启动 minikube,我想将我的 kubectl 降级为 1.5.2。目前,当我运行kubectl version 时,我得到:
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5", GitCommit:"17d7182a7ccbb167074be7a87f0a68bd00d58d97", GitTreeState:"clean", BuildDate:"2017-08-31T19:32:12Z", GoVersion:"go1.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.7", Compiler:"gc", Platform:"linux/amd64"}
我想使用 kubectl 来获取 PetSets,但在以后的版本中,这已更新为 StatefulSets,因此我无法在我当前的 kubectl 版本中使用这些命令
kubectl get petsets
the server doesn't have a resource type "petsets"
谢谢!
【问题讨论】:
标签: kubernetes kubectl minikube