Skip to content

Instantly share code, notes, and snippets.

@ShubhanjanMedhi-dev
Created February 4, 2022 06:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShubhanjanMedhi-dev/318497d6c38b39832a3164163f71bcb3 to your computer and use it in GitHub Desktop.
Save ShubhanjanMedhi-dev/318497d6c38b39832a3164163f71bcb3 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
labels:
name: liveness-probe-exec
spec:
containers:
- name: liveness-probe
image: busybox
args:
- /bin/sh
- -c
- touch healthy; sleep 20; rm -rf healthy; sleep 600
livenessProbe:
exec:
command:
- cat
- healthy
initialDelaySeconds: 5
periodSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment