Kubernetes:Error from server (Conflict)

Published by

Posted on March 09, 2020

Error from server (Conflict): error when replacing “<blah>.yaml”: Operation cannot be fulfilled on deployments.extensions “<blah>”: the object has been modified; please apply your changes to the latest version and try again

This is due to the resourceVersion id changing after you exported the yaml file.

You can use the edit deploy option to copy the current id and update the id in the yaml file you are trying to apply. I will post the actual commands soon