commit c0060cbff5bc296eaf088a1c5b54c653ca07bd52
parent 0a4a4b0a1418fd52bcaa2ec22aac82bc6a3160ae
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 12 Feb 2025 10:41:41 +0100
Add keydb readiness probe
Diffstat:
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/apps/base/matrix/draupnir-synapse/keydb.yaml b/apps/base/matrix/draupnir-synapse/keydb.yaml
@@ -19,7 +19,12 @@ spec:
command: ["keydb-server"]
args: ["/etc/keydb/keydb.conf", "--protected-mode", "no"]
ports:
- - containerPort: 6379
+ - containerPort: 6379
+ resources:
+ requests:
+ memory: "128Mi"
+ cpu: "100m"
+ limits: {}
tolerations:
- key: arch
operator: Equal
@@ -33,6 +38,14 @@ spec:
- keydb-cli ping
initialDelaySeconds: 10
timeoutSeconds: 5
+ readinessProbe:
+ exec:
+ command:
+ - sh
+ - -c
+ - keydb-cli ping
+ initialDelaySeconds: 10
+ timeoutSeconds: 5
---
apiVersion: v1
kind: Service
diff --git a/apps/base/matrix/synapse/keydb.yaml b/apps/base/matrix/synapse/keydb.yaml
@@ -20,6 +20,11 @@ spec:
imagePullPolicy: Always
ports:
- containerPort: 6379
+ resources:
+ requests:
+ memory: "128Mi"
+ cpu: "100m"
+ limits: {}
tolerations:
- key: arch
operator: Equal
@@ -33,6 +38,14 @@ spec:
- keydb-cli ping
initialDelaySeconds: 10
timeoutSeconds: 5
+ readinessProbe:
+ exec:
+ command:
+ - sh
+ - -c
+ - keydb-cli ping
+ initialDelaySeconds: 10
+ timeoutSeconds: 5
---
apiVersion: v1
kind: Service