Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试通过 更改apiVersion部署时,为什么会出现错误kubectl edit deployment example?
apiVersion
kubectl edit deployment example
我必须删除并重新创建对象吗?
你得到这个是因为资源的某些属性一旦创建就可以更改。ApiVersion、Kind 和 Name 是资源的一些主要标识符,因此如果不删除/重新创建它们就无法更改它们。