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