Skip to content

Commit 5824948

Browse files
committed
pdb example
1 parent a53d5d2 commit 5824948

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

behavorial/SingletonService/deployment.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ spec:
2121
env:
2222
# Tell random-generator to wait 5 seconds when starting up
2323
- name: DELAY_STARTUP
24-
value: "5"
24+
value: "10"
2525
livenessProbe:
2626
httpGet:
2727
path: /actuator/health
2828
port: 8080
2929
initialDelaySeconds: 10
30+
readinessProbe:
31+
# We are checking for a file created by our app when its ready
32+
exec:
33+
command: [ "stat", "/opt/random-generator-ready" ]
3034
ports:
3135
- containerPort: 8080
3236
protocol: TCP

0 commit comments

Comments
 (0)