Skip to content

Instantly share code, notes, and snippets.

@mascot6699
Created June 25, 2019 05:39
Show Gist options
  • Save mascot6699/4e45662f3cea0cfb00e0e2c3a7c8d21d to your computer and use it in GitHub Desktop.
Save mascot6699/4e45662f3cea0cfb00e0e2c3a7c8d21d to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: liveness-exec
spec:
containers:
- name: liveness
image: gcr.io/google_containers/busybox
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
livenessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment