Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Hook before terminating pods #186

Open
urbaniak opened this issue Sep 13, 2018 · 1 comment
Open

Hook before terminating pods #186

urbaniak opened this issue Sep 13, 2018 · 1 comment

Comments

@urbaniak
Copy link

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.

@lucab
Copy link
Contributor

lucab commented Sep 17, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants