kubectl apply -f test.yaml報錯


Operation cannot be fulfilled on clusterrolebindings.rbac.authorization.k8s.io "vault-server-binding": the object has been modified; please apply your changes to the latest version and try again

參考 https://stackoverflow.com/questions/51297136/kubectl-error-the-object-has-been-modified-please-apply-your-changes-to-the-la

you may have been edited the same exported deployment file..

1 - try to reexport it with:

kubectl get deployment <DEPLOYMENT-NAME> -o yaml > deployment-file.yaml 

2 - make the needed modifications in "deployment-file.yaml"

3 - apply the changes with:

kubectl apply -f deployment-file.yaml 

OR:

you may want to edit the deployment directly.. use :

kubectl edit deployment <DEPLOYMENT-NAME> -o yaml

change the default editor if you aren't familiar with VI editor : export EDITOR=nano


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM