Kubectl error: the object has been modified; please apply your changes to the latest version and try again

前端 未结 4 1168
北恋
北恋 2021-01-03 19:34

I am getting below error while trying to apply patch :

core@dgoutam22-1-coreos-5760 ~ $ kubectl apply -f ads-central-configuration.yaml
Warning: kubectl appl         


        
4条回答
  •  孤独总比滥情好
    2021-01-03 20:21

    It seems likely that your yaml configurations were copy pasted from what was generated, and thus contains fields such as creationTimestamp, which don't belong in a declarative configuration file.

    Go through your yaml and clean it up. Remove things that are instance specific. Your final yaml should be simple enough that you can easily understand it.

提交回复
热议问题