For Kubernetes, we found that GitLab has a tool that automatically does that:
https://gitlab.com/gitlab-org/ci-cd/gitlab-runner-pod-cleanu...
For Kubernetes, we found that GitLab has a tool that automatically does that:
https://gitlab.com/gitlab-org/ci-cd/gitlab-runner-pod-cleanu...