container-linux-update-operator icon indicating copy to clipboard operation
container-linux-update-operator copied to clipboard

Hook before terminating pods

Open urbaniak opened this issue 7 years ago • 1 comments

Found that it would be really useful to have a hook (just like before-reboot, after-reboot) before deleting pods.

We're running CI builds on k8s and sometimes CLUO terminates the pods with ongoing builds.

urbaniak avatar Sep 13 '18 08:09 urbaniak

Container lifecycle hooks are provided by kubernetes itself. Have you checked the synchronous preStop hook? https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/

lucab avatar Sep 17 '18 08:09 lucab