Skip to content

Instantly share code, notes, and snippets.

@martincalvert
Last active February 10, 2018 01:04
Show Gist options
  • Save martincalvert/a99bdba7e6f40c8f1d1426c1669f04c6 to your computer and use it in GitHub Desktop.
Save martincalvert/a99bdba7e6f40c8f1d1426c1669f04c6 to your computer and use it in GitHub Desktop.
spec:
template:
spec:
containers:
- lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "echo Hello"]
preStop:
exec:
command: ["/bin/sh", "-c", "echo Bye"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment