From a9c627746d80539c328fda3b0d6b6bcc9a6b3a9d Mon Sep 17 00:00:00 2001 From: atsag Date: Thu, 28 Nov 2024 16:43:38 +0200 Subject: [PATCH] Update deployment.yaml to include proper health checking for the exponential smoothing predictor (#37) --- charts/nebulous-exponential-smoothing-predictor/Chart.yaml | 2 +- .../templates/deployment.yaml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/charts/nebulous-exponential-smoothing-predictor/Chart.yaml b/charts/nebulous-exponential-smoothing-predictor/Chart.yaml index e04b799..7f64104 100755 --- a/charts/nebulous-exponential-smoothing-predictor/Chart.yaml +++ b/charts/nebulous-exponential-smoothing-predictor/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml b/charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml index 7279333..7e60c50 100755 --- a/charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml +++ b/charts/nebulous-exponential-smoothing-predictor/templates/deployment.yaml @@ -40,8 +40,11 @@ spec: livenessProbe: exec: command: - - ls - - /home + - /bin/sh + - -c + - stat /home/r_predictions/is_alive.txt && rm /home/r_predictions/is_alive.txt + initialDelaySeconds: 60 + periodSeconds: 10 readinessProbe: exec: command: