Information
Unmount volumes from the nodes on pod termination.
Rationale:
On pod termination, you should unmount the volumes. Those volumes might have sensitive data that might be exposed if kept mounted on the node without any use. Additionally, such mounted volumes could be modified and later could be mounted on pods. Also, if you retain all mounted volumes for a long time, it might exhaust system resources and you might not be able to mount any more volumes on new pods.
Solution
Edit the kubelet service file '/etc/systemd/system/kubelet.service.d/10-kubeadm.conf' on each worker node and set the below parameter in 'KUBELET_SYSTEM_PODS_ARGS' variable.
--keep-terminated-pod-volumes=false
Based on your system, restart the 'kubelet' service. For example:
systemctl daemon-reload
systemctl restart kubelet.service
Impact:
Volumes will not be available for debugging.