From 1b9e6526f03693ba24cc1c476104e89ab6c13270 Mon Sep 17 00:00:00 2001 From: Thumbscrew Date: Sat, 16 Mar 2024 17:26:08 +0000 Subject: [PATCH] replace readinessProbe with startupProbe file operations were taking too long at fresh startup --- charts/tandoor-recipes/Chart.yaml | 2 +- charts/tandoor-recipes/templates/deployment.yaml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/charts/tandoor-recipes/Chart.yaml b/charts/tandoor-recipes/Chart.yaml index ceb0808..db5bc02 100644 --- a/charts/tandoor-recipes/Chart.yaml +++ b/charts/tandoor-recipes/Chart.yaml @@ -16,7 +16,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.2.3 +version: 0.3.0 # 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/tandoor-recipes/templates/deployment.yaml b/charts/tandoor-recipes/templates/deployment.yaml index 5579359..cf28ac6 100644 --- a/charts/tandoor-recipes/templates/deployment.yaml +++ b/charts/tandoor-recipes/templates/deployment.yaml @@ -67,12 +67,14 @@ spec: key: password livenessProbe: httpGet: - path: / + path: /accounts/login/ port: http - readinessProbe: + startupProbe: httpGet: - path: / + path: /accounts/login/ port: http + periodSeconds: 3 + failureThreshold: 30 resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: