Skip to content

Commit d36dadc

Browse files
committed
add startup probe
1 parent 6a11a27 commit d36dadc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

k8s/deployment.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,18 @@ spec:
4444
path: /ping
4545
port: 8080
4646
initialDelaySeconds: 15
47-
periodSeconds: 10
47+
periodSeconds: 15
4848
readinessProbe: # checks whether the container is ready to receive traffic
4949
httpGet:
5050
path: /ping
5151
port: 8080
5252
initialDelaySeconds: 5
5353
periodSeconds: 5
54+
startupProbe: # hold off liveness and readiness probes until container is started
55+
httpGet:
56+
path: /ping
57+
port: 8080
58+
initialDelaySeconds: 10
59+
periodSeconds: 10
60+
failureThreshold: 10
61+
failure

0 commit comments

Comments
 (0)