Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: At least one of apiVersion, kind and name was changed

Tags:

kubernetes

Why am I getting an error when I try to change the apiVersion of a deployment via kubectl edit deployment example ?

Do I have to delete and recreate the object?

like image 894
Chris Stryczynski Avatar asked Dec 07 '22 12:12

Chris Stryczynski


1 Answers

You're getting this because there are only certain attributes of a resource that you may change once it's created. ApiVersion, Kind, and Name are some of the prime identifiers of a resource so they can't be changed without deleting/recreating them.

like image 153
Grant David Bachman Avatar answered May 22 '23 15:05

Grant David Bachman