Trying to investigate certain things in Kubernetes:
What are the things that needs to be cleaned up when a pod is getting deleted ?
How are connections handled during the termination phase ?
When Pod is deleted, you need to delete below resources
Deployment or replicaset needs to be deleted first if pods are part of these resources and deletion of pod is taken care automatically
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