From 34878d0f93bf522986138beee819ae8b67571ec9 Mon Sep 17 00:00:00 2001 From: Ween Jiann <16207788+lwj5@users.noreply.github.com> Date: Fri, 9 Jul 2021 11:16:24 +0800 Subject: [PATCH] Extend liveness probe delay to prevent first migration failure (#374) * Change liveness probe type * Change liveness probe values * Bump chart version --- charts/invoiceninja/Chart.yaml | 2 +- charts/invoiceninja/templates/deployment.yaml | 6 ++++-- charts/invoiceninja/values.yaml | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/charts/invoiceninja/Chart.yaml b/charts/invoiceninja/Chart.yaml index 801ab59..d766d3d 100644 --- a/charts/invoiceninja/Chart.yaml +++ b/charts/invoiceninja/Chart.yaml @@ -13,7 +13,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.7.0 +version: 0.7.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 # follow Semantic Versioning. They should reflect the version the application is using. diff --git a/charts/invoiceninja/templates/deployment.yaml b/charts/invoiceninja/templates/deployment.yaml index bf647a5..83a2163 100644 --- a/charts/invoiceninja/templates/deployment.yaml +++ b/charts/invoiceninja/templates/deployment.yaml @@ -135,8 +135,10 @@ spec: timeoutSeconds: {{ $.Values.livenessProbe.timeoutSeconds }} successThreshold: {{ $.Values.livenessProbe.successThreshold }} failureThreshold: {{ $.Values.livenessProbe.failureThreshold }} - tcpSocket: - port: {{ .Values.livenessProbe.port }} + exec: + command: + - pgrep + - php-fpm {{- end }} {{- if .Values.readinessProbe.enabled }} readinessProbe: diff --git a/charts/invoiceninja/values.yaml b/charts/invoiceninja/values.yaml index 0e9bacb..3529175 100644 --- a/charts/invoiceninja/values.yaml +++ b/charts/invoiceninja/values.yaml @@ -294,12 +294,11 @@ service: ## livenessProbe: enabled: true - initialDelaySeconds: 30 + initialDelaySeconds: 120 periodSeconds: 10 timeoutSeconds: 5 failureThreshold: 6 successThreshold: 1 - port: fastcgi readinessProbe: enabled: true initialDelaySeconds: 15