<p>I want to isolate a pod from its deployment. So I execute the command “kubeclt label pod  app= --overwrite” Just like</p>
<pre><code> ✘ yanchampion@yanchampiondeMacBook-Pro  ~  kubectl -n test1 label pod myapp-deploy-848987f4fb-wc5v2 app=newname-debug --overwrite
Error from server (InternalError): Internal error occurred: replace operation does not apply: doc is missing key: /spec/containers/0/env/   : missing value
</code></pre>
<p>Here is the deployment pod info</p>
<pre><code> yanchampion@yanchampiondeMacBook-Pro  ~  kubectl -n test1 get pod |grep myapp-deploy
myapp-deploy-848987f4fb-wc5v2                         1/1     Running            0                5d8h
</code></pre>
<p>So What's the problem?</p>
<p>I just want to isolate the pod from its deployment!
Someone can tell me how to fix it?</p>

champion yan
<p>You could also try to edit or remove the label from its pod spec:</p>
<p>​
<code>kubectl edit pod myapp-deploy-848987f4fb-wc5v2</code></p>
