depolyment报错error: unable to recognize "nfs-client-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1" 是deployment的apis更改了


$ kubectl api-resources | grep deployment
deployments                       deploy       apps                           true         Deployment

This means that only apiVersion with apps is correct for Deployments (extensions is not supporting Deployment). The same situation with StatefulSet.

这意味着只有 apiVersion withapps对 Deployments 是正确的(extensions不支持Deployment)。与 StatefulSet 的情况相同。

您需要将 Deployment 和 StatefulSet apiVersion 更改为apiVersion: apps/v1


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM