EDITD / kubetools

:nut_and_bolt: Kubetools is a tool and processes for developing and deploying microservices to Kubernetes.
MIT License
13 stars 2 forks source link

Delete job pods when deleting jobs #76

Open Fizzadar opened 3 years ago

Fizzadar commented 3 years ago

Currently we delete the job leaving the pods. K8s does not handle this itself, so we should, same as kubectl.

ryan109 commented 3 years ago

@eatoncns I can't remember, is this done now?

eatoncns commented 3 years ago

The option to do so is now there in the delete_job function via the propagation_policy. Foreground or background policies will clean up dependents.