Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
keydb: use static random UUIDv4 for readiness probe due to #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiarchitect committed Jan 23, 2023
1 parent c13b63b commit a85b334
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keydb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions keydb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]` |
Expand Down
2 changes: 1 addition & 1 deletion keydb/templates/cm-health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
3 changes: 3 additions & 0 deletions keydb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a85b334

Please sign in to comment.