Created
February 4, 2022 06:44
-
-
Save ShubhanjanMedhi-dev/318497d6c38b39832a3164163f71bcb3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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