From cb30d35ed9814aa6c2157acb856599cba0e5dc12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Hu=C3=9F?= Date: Thu, 20 Jul 2023 16:57:04 +0200 Subject: [PATCH] Fix readiness checks by checking for "/tmp/random-generator-ready" --- behavioral/SingletonService/deployment.yml | 2 +- foundational/HealthProbe/deployment.yml | 2 +- foundational/HealthProbe/readiness-gate-deployment.yml | 2 +- foundational/HealthProbe/startup-deployment.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/behavioral/SingletonService/deployment.yml b/behavioral/SingletonService/deployment.yml index 8b2c9ff..26e4eda 100644 --- a/behavioral/SingletonService/deployment.yml +++ b/behavioral/SingletonService/deployment.yml @@ -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 diff --git a/foundational/HealthProbe/deployment.yml b/foundational/HealthProbe/deployment.yml index a970cab..8417edc 100644 --- a/foundational/HealthProbe/deployment.yml +++ b/foundational/HealthProbe/deployment.yml @@ -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" ] diff --git a/foundational/HealthProbe/readiness-gate-deployment.yml b/foundational/HealthProbe/readiness-gate-deployment.yml index 0feb2ee..0a7c86c 100644 --- a/foundational/HealthProbe/readiness-gate-deployment.yml +++ b/foundational/HealthProbe/readiness-gate-deployment.yml @@ -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" diff --git a/foundational/HealthProbe/startup-deployment.yml b/foundational/HealthProbe/startup-deployment.yml index 263718c..e992ff4 100644 --- a/foundational/HealthProbe/startup-deployment.yml +++ b/foundational/HealthProbe/startup-deployment.yml @@ -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: