title: Kubernetes kubectl patch pod vs delete/create pod
body: <p>I have a Pod - I want to update to latest version of container image, if it fails then want to revert it back to earlier version of container image.</p>
  <p>Which approach of below will be good to update to latest or earlier container image.
  1&gt; using kubectl patch is good option?
  2&gt; deleting the pod and again creating the pod is good option?</p>
  <p>what are benefits/disadvantages of both approach.</p>
  <pre><code>kubectl patch pod test-pod -p '{&quot;spec&quot;:{&quot;containers&quot;:[{&quot;name&quot;:&quot;test&quot;,&quot;image&quot;:&quot;1.0&quot;}]}}'
  </code></pre>
  <p><code>kubectl delete pod test-pod and kubectl apply -f testpod.yaml</code></p>