Skip to content

Instantly share code, notes, and snippets.

@uthark
Created July 23, 2019 16:21
Show Gist options
  • Save uthark/caf919ee2d37a7d3e9536974de326136 to your computer and use it in GitHub Desktop.
Save uthark/caf919ee2d37a7d3e9536974de326136 to your computer and use it in GitHub Desktop.
Lifecycle hook CNI Plugin
lifecycle:
preStop: # taint node before stop.
exec:
command:
- /bin/sh
- -c
- /usr/bin/lifecycle_hook.sh preStop
postStart: # untaint node after start.
exec:
command:
- /bin/sh
- -c
- /usr/bin/lifecycle_hook.sh postStart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment