<p>Trying to investigate certain things in Kubernetes:</p>

<ol>
<li><p>What are the things that needs to be cleaned up when a pod is getting deleted ?</p></li>
<li><p>How are connections handled during the termination phase ?</p></li>
</ol>

XnaijaZ
<p>When Pod is deleted, you need to delete  below resources</p>

<ol>
<li>configmap</li>
<li>secrets</li>
<li>services</li>
<li>certificates</li>
<li>Ingress</li>
<li>Services</li>
</ol>

<p>Deployment or replicaset needs to be deleted first if pods are part of these resources and deletion of pod is taken care automatically</p>

<p>Connections are handled until there is one pod is running, and service is not yet deleted. Deleting configmaps, secrets may not impact as pod would have picked up these details at the startup</p>
