Skip to content

Commit cb30d35

Browse files
committed
Fix readiness checks by checking for "/tmp/random-generator-ready"
1 parent 8968429 commit cb30d35

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

behavioral/SingletonService/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
readinessProbe:
3131
# We are checking for a file created by our app when its ready
3232
exec:
33-
command: [ "stat", "/opt/random-generator-ready" ]
33+
command: [ "stat", "/tmp/random-generator-ready" ]
3434
ports:
3535
- containerPort: 8080
3636
protocol: TCP

foundational/HealthProbe/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ spec:
3434
readinessProbe:
3535
# We are checking for a file created by our app when its ready
3636
exec:
37-
command: [ "stat", "/opt/random-generator-ready" ]
37+
command: [ "stat", "/tmp/random-generator-ready" ]

foundational/HealthProbe/readiness-gate-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
# We are checking for a file created by our app when its ready
2626
initialDelaySeconds: 20
2727
exec:
28-
command: [ "stat", "/opt/random-generator-ready" ]
28+
command: [ "stat", "/tmp/random-generator-ready" ]
2929
readinessGates:
3030
- conditionType: "k8spatterns.io/RandomReady"
3131

foundational/HealthProbe/startup-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
readinessProbe:
3636
# We are checking for a file created by our app when its ready
3737
exec:
38-
command: [ "stat", "/opt/random-generator-ready" ]
38+
command: [ "stat", "/tmp/random-generator-ready" ]
3939
startupProbe:
4040
# Check the same endpoint as the liveness probe for the startup probe
4141
httpGet:

0 commit comments

Comments
 (0)