Deletion of Kubernetes deployment must cleanup the jobs in namespace

0

How can i identify all the jobs related that must be cleaned up after deletion of a deployment,

Identify the specify jobs which must be excluded from the cleanup

Design a solution to ensure that all associated jobs are deleted when a deployment is deleted.