Skip to content

Commit

Permalink
Fix readiness checks by checking for "/tmp/random-generator-ready"
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Jul 20, 2023
1 parent 8968429 commit cb30d35
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion behavioral/SingletonService/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
readinessProbe:
# We are checking for a file created by our app when its ready
exec:
command: [ "stat", "/opt/random-generator-ready" ]
command: [ "stat", "/tmp/random-generator-ready" ]
ports:
- containerPort: 8080
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion foundational/HealthProbe/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ spec:
readinessProbe:
# We are checking for a file created by our app when its ready
exec:
command: [ "stat", "/opt/random-generator-ready" ]
command: [ "stat", "/tmp/random-generator-ready" ]
2 changes: 1 addition & 1 deletion foundational/HealthProbe/readiness-gate-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
# We are checking for a file created by our app when its ready
initialDelaySeconds: 20
exec:
command: [ "stat", "/opt/random-generator-ready" ]
command: [ "stat", "/tmp/random-generator-ready" ]
readinessGates:
- conditionType: "k8spatterns.io/RandomReady"

2 changes: 1 addition & 1 deletion foundational/HealthProbe/startup-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
readinessProbe:
# We are checking for a file created by our app when its ready
exec:
command: [ "stat", "/opt/random-generator-ready" ]
command: [ "stat", "/tmp/random-generator-ready" ]
startupProbe:
# Check the same endpoint as the liveness probe for the startup probe
httpGet:
Expand Down

0 comments on commit cb30d35

Please sign in to comment.