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