linux怎么查看本机内存大小
288
2022-09-10
no matches for kind “Deployment“ in version “extensions/v1beta1“
问题
$ kubectl apply -f kube-state-metrics-deploy.yaml error: unable to recognize "kube-state-metrics-deploy.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
解决方法
确认kubernetes 集群版本
$ kubectl get nodeNAME STATUS ROLES AGE VERSIONmaster Ready control-plane,master 5h28m v1.20.1node1 Ready 5h26m v1.20.1node2 Ready 5h25m v1.20.1
查看支持apiversion版本,当前是apps/v1
$ kubectl api-resources |grep deploymentdeployments deploy apps/v1 true Deployment
修改文件kube-state-metrics-deploy.yaml
apiVersion: apps/v1
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~