beacon-biosignals / K8sClusterManagers.jl

A Julia cluster manager for Kubernetes
Other
31 stars 5 forks source link

Delete completed worker pods on deregister #73

Open omus opened 3 years ago

omus commented 3 years ago

We currently launch pods for workers and after the pod has succeeded or failed the pod will still be visible in the pod list from kubectl get pods. For pods that fail we should probably refrain from deleting them to assist with postmortem debugging but for succeeded pods we may want to automatically clean them up.

Pods don't support a TTL but completed pods (succeeded or failed) are eventually garbage collected.

omus commented 3 years ago

Related to https://github.com/beacon-biosignals/K8sClusterManagers.jl/issues/54 but slightly different.