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