From a85b334a2135aa176fbdd791e18e05f28cbc3097 Mon Sep 17 00:00:00 2001 From: Andrey Voronkov Date: Mon, 23 Jan 2023 14:32:43 +0300 Subject: [PATCH] keydb: use static random UUIDv4 for readiness probe due to https://github.com/Enapter/charts/issues/62 --- keydb/Chart.yaml | 2 +- keydb/README.md | 1 + keydb/templates/cm-health.yaml | 2 +- keydb/values.yaml | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/keydb/Chart.yaml b/keydb/Chart.yaml index 71c3521..d8cfeb7 100644 --- a/keydb/Chart.yaml +++ b/keydb/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: keydb description: A Helm chart for KeyDB multimaster setup type: application -version: 0.45.0 +version: 0.46.0 keywords: - keydb - redis diff --git a/keydb/README.md b/keydb/README.md index aa6f2d1..4ed51e3 100644 --- a/keydb/README.md +++ b/keydb/README.md @@ -121,6 +121,7 @@ The following table lists the configurable parameters of the KeyDB chart and the | `extraVolumes` | Additional volumes for init and sidecar containers | `[]` | | `livenessProbe.custom` | Custom LivenessProbe for KeyDB pods | `{}` | | `readinessProbe.custom` | Custom ReadinessProbe for KeyDB pods | `{}` | +| `readinessProbeRandomUuid` | Random UUIDv4 for readiness GET probe | `90f717dd-0e68-43b8-9363-fddaad00d6c9` | | `startupProbe.custom` | Custom StartupProbe for KeyDB pods | `{}` | | `persistentVolume.enabled` | Should PVC be created via volumeClaimTemplates | `true` | | `persistentVolume.accessModes` | Volume access modes | `[ReadWriteOnce]` | diff --git a/keydb/templates/cm-health.yaml b/keydb/templates/cm-health.yaml index 7d0cce3..6ee7d40 100644 --- a/keydb/templates/cm-health.yaml +++ b/keydb/templates/cm-health.yaml @@ -18,7 +18,7 @@ data: keydb-cli \ -h localhost \ -p "${REDIS_PORT}" \ - GET {{ uuidv4 }} # Some random UUID which represents non-existent key + GET {{ .Values.readinessProbeRandomUuid }} )" if [ "${response}" = "${loading_response}" ]; then echo "${response}" diff --git a/keydb/values.yaml b/keydb/values.yaml index 6a6748a..daa30f1 100644 --- a/keydb/values.yaml +++ b/keydb/values.yaml @@ -121,6 +121,9 @@ readinessProbe: successThreshold: 1 failureThreshold: 5 +# Random UUID for readiness GET probe +readinessProbeRandomUuid: "90f717dd-0e68-43b8-9363-fddaad00d6c9" + # Startup Probe startupProbe: enabled: true