From c17e37c4b8856066c68de562a8791c99df05f84f Mon Sep 17 00:00:00 2001 From: Fabian Date: Sun, 22 Aug 2021 14:45:21 +0200 Subject: [PATCH] Fix: mysqladmin ping timeout from 12 hours to 15 seconds (#392) * Update deployment.yaml Changed init-container "wait-db" for waiting 15 seconds instead of 12 hours (default) in case of a timeout * Update Chart.yaml --- charts/invoiceninja/Chart.yaml | 2 +- charts/invoiceninja/templates/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/invoiceninja/Chart.yaml b/charts/invoiceninja/Chart.yaml index a207a31..f3f6ff7 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.8.0 +version: 0.8.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 db5625b..662a40b 100644 --- a/charts/invoiceninja/templates/deployment.yaml +++ b/charts/invoiceninja/templates/deployment.yaml @@ -66,7 +66,7 @@ spec: [[ -z "${DB_HOST1}" ]] || DB_HOST="${DB_HOST1}"; [[ -z "${DB_PORT1}" ]] || DB_PORT="${DB_PORT1}"; while [ $COUNTER -lt 120 ]; do - if mysqladmin ping -h "$DB_HOST" -P $DB_PORT --silent; then + if mysqladmin ping -h "$DB_HOST" -P $DB_PORT --connect-timeout=15 --silent; then exit 0; fi; let COUNTER=COUNTER+1;