<p>We have a deployment with different pods which are installed using helm install.
In the next release, one of the pods needs to be removed as it is obsoleted. How to stop the pod during helm upgrade ?
Thanks</p>

Chandu
<p>When you upgrade helm deployment it proceeds one by one. First, one pod is destroyed and created new pod with new changes if the upgraded deployment is successful and the new pod is running then it proceeds with the 2nd pod, and so on till the desired number of Pods is completed. If you still see an old pod running along with a newly upgraded pod it means something went wrong and the upgrade is not successful.
Run <code>kubectl get pods -n namespace</code> and check the ready state 1/1 or 2/2 if any container is not running or missing. If all the pods have the desired container and everything is okay then look for the logs by <code>kubectl logs -f pod --tail=10</code> and see if there is any log error. If all is okay then simply delete the old pod and if it is stuck in a terminating state then delete it by force like <code>kubectl delete pod &lt;pod-name&gt; --force --grace-period=0</code> This command will delete the old pod and keep the new pods.</p>
