forked from scmlearningcentre/fispune
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliveness.yml
More file actions
22 lines (22 loc) · 725 Bytes
/
liveness.yml
File metadata and controls
22 lines (22 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
apiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
name: mylivenessprobe
spec:
containers:
- name: liveness
image: ubuntu
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 1000
livenessProbe: # define the health check
exec:
command: # command to run periodically
- cat
- /tmp/healthy
initialDelaySeconds: 5 # Wait for the specified time before it runs the first probe
periodSeconds: 5 # Run the above command every 5 sec
timeoutSeconds: 30