container-linux-update-operator
container-linux-update-operator copied to clipboard
Hook before terminating pods
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.
Container lifecycle hooks are provided by kubernetes itself. Have you checked the synchronous preStop hook? https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/