From 3fa7ac5447361bb8f4eac8931b28551a1b741e55 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 8 May 2026 21:14:15 +0200 Subject: [PATCH] Add dragonfly to the deployment Signed-off-by: Nikolai Rodionov --- .../templates/deployment.yaml | 2 ++ .../templates/extra/dragonfly.yaml | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 helm/softplayer-backend/templates/extra/dragonfly.yaml diff --git a/helm/softplayer-backend/templates/deployment.yaml b/helm/softplayer-backend/templates/deployment.yaml index f04dda1..197b08e 100644 --- a/helm/softplayer-backend/templates/deployment.yaml +++ b/helm/softplayer-backend/templates/deployment.yaml @@ -66,6 +66,8 @@ spec: secretKeyRef: name: {{ include "softplayer-backend.fullname" . }}-db-creds key: CONNECTION_STRING + - name: SOFTPLAYER_REDIS_HOST + value: {{ include "softplayer-backend.fullname" . }}-dragonfly:6379 args: - serve - --dev-mode diff --git a/helm/softplayer-backend/templates/extra/dragonfly.yaml b/helm/softplayer-backend/templates/extra/dragonfly.yaml new file mode 100644 index 0000000..c0d0b3f --- /dev/null +++ b/helm/softplayer-backend/templates/extra/dragonfly.yaml @@ -0,0 +1,17 @@ +apiVersion: dragonflydb.io/v1alpha1 +kind: Dragonfly +metadata: + name: {{ include "softplayer-backend.fullname" . }}-dragonfly + labels: + {{- include "softplayer-backend.labels" . | nindent 4 }} +spec: + imagePullPolicy: Always + networkPolicyEnabled: true + replicas: 1 + resources: + limits: + cpu: 20m + memory: 256Mi + requests: + cpu: 20m + memory: 128Mi