Skip to content

Instantly share code, notes, and snippets.

@wuestkamp
Last active February 21, 2020 22:01
Show Gist options
  • Save wuestkamp/769c536209dd05c8f51256c3d678d6fa to your computer and use it in GitHub Desktop.
Save wuestkamp/769c536209dd05c8f51256c3d678d6fa to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: runner
spec:
containers:
- command:
- sh
- -c
- 'touch /tmp/messaging && tail -f /tmp/messaging'
image: bash
name: runner
lifecycle:
postStart:
exec:
command: ["sh", "-c", "echo postStart >> /tmp/messaging"]
preStop:
exec:
command: ["sh", "-c", "echo preStop >> /tmp/messaging"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment