大家
最近我升级我的K8S集群v1.10.3,然后我滚回v1.9.8,再到v1.8.12。 从那以后,我发现了一些我无法理解。
我可以在默认的命名空间列出的部署:
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
dunking-hedgehog-helmet 1 1 1 1 197d
kube-system-tomcat-official 1 1 1 1 197d
mongodb 1 1 1 1 152d
smelly-pig-mysql 1 1 1 1 204d
但可在我的KUBE-系统命名空间不是:
# kubectl get deploy -nkube-system
Error from server: no kind "Deployment" is registered for version "apps/v1"
此外,API服务器启动的日志:
E0530 10:47:09.511854 1 cacher.go:277] unexpected ListAndWatch error: storage/cacher.go:/daemonsets: Failed to list *extension
s.DaemonSet: no kind "DaemonSet" is registered for version "apps/v1"
E0530 10:47:09.534114 1 cacher.go:277] unexpected ListAndWatch error: storage/cacher.go:/daemonsets: Failed to list *extension
s.DaemonSet: no kind "DaemonSet" is registered for version "apps/v1"
E0530 10:47:09.577678 1 cacher.go:277] unexpected ListAndWatch error: storage/cacher.go:/replicasets: Failed to list *extensio
ns.ReplicaSet: no kind "ReplicaSet" is registered for version "apps/v1"
E0530 10:47:09.580008 1 cacher.go:277] unexpected ListAndWatch error: storage/cacher.go:/deployments: Failed to list *extensio
ns.Deployment: no kind "Deployment" is registered for version "apps/v1"
E0530 10:47:09.580234 1 cacher.go:277] unexpected ListAndWatch error: storage/cacher.go:/deployments: Failed to list *extensio
ns.Deployment: no kind "Deployment" is registered for version "apps/v1"
我们都知道API版本的应用程序/ V1是因为v1.9.0增加,所以为什么v1.8.12尝试注册为部署版“应用/ V1”?