From 66c341a7b066ca084466ccde8f5eb1cdf2f1b2a9 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Mon, 28 Mar 2022 22:03:39 +0300 Subject: [PATCH] feat(postgresql): Add probes on standalone aswell (#2318) --- charts/dependency/postgresql/Chart.yaml | 2 +- charts/dependency/postgresql/values.yaml | 52 ++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/charts/dependency/postgresql/Chart.yaml b/charts/dependency/postgresql/Chart.yaml index ab794f311df..cc63f6f3f28 100644 --- a/charts/dependency/postgresql/Chart.yaml +++ b/charts/dependency/postgresql/Chart.yaml @@ -22,7 +22,7 @@ name: postgresql sources: - https://www.postgresql.org/ type: application -version: 7.0.14 +version: 7.0.15 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/postgresql/values.yaml b/charts/dependency/postgresql/values.yaml index 8a81dabc05b..89dc7bea99a 100644 --- a/charts/dependency/postgresql/values.yaml +++ b/charts/dependency/postgresql/values.yaml @@ -45,6 +45,58 @@ volumeClaimTemplates: enabled: true mountPath: "/bitnami/postgresql" +# -- Probe configuration +# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) +# @default -- See below +probes: + # -- Liveness probe configuration + # @default -- See below + liveness: + # -- Enable the liveness probe + enabled: true + # -- Set this to `true` if you wish to specify your own livenessProbe + custom: true + # -- The spec field contains the values for the default livenessProbe. + # If you selected `custom: true`, this field holds the definition of the livenessProbe. + # @default -- See below + spec: + exec: + command: + - sh + - -c + - "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2 ; done" + + # -- Redainess probe configuration + # @default -- See below + readiness: + # -- Enable the readiness probe + enabled: true + # -- Set this to `true` if you wish to specify your own readinessProbe + custom: true + # -- The spec field contains the values for the default readinessProbe. + # If you selected `custom: true`, this field holds the definition of the readinessProbe. + # @default -- See below + spec: + exec: + command: + - sh + - -c + - "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2 ; done" + # -- Startup probe configuration + # @default -- See below + startup: + # -- Enable the startup probe + enabled: true + custom: true + # -- The spec field contains the values for the default livenessProbe. + # If you selected `custom: true`, this field holds the definition of the livenessProbe. + # @default -- See below + spec: + exec: + command: + - sh + - -c + - "until pg_isready -U ${POSTGRES_USER} -h localhost; do sleep 2 ; done" postgresqlPassword: "testpass" postgresqlUsername: "test"