From 46bbb80021a6b56b1b7b8a4be2a841084b128c45 Mon Sep 17 00:00:00 2001 From: Christian Landgren Date: Thu, 1 Feb 2024 22:48:34 +0100 Subject: [PATCH] fix: use redis password --- k8s/deployment.yaml | 6 +++++- src/config/redis.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 3a1ff443..643a61a1 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -49,12 +49,16 @@ spec: valueFrom: secretKeyRef: name: chromadb-auth - namespace: chromadb key: token - name: CHROMA_HOST value: chromadb.chromadb.svc.cluster.local:8000 - name: REDIS_HOST value: redis-master.redis.svc.cluster.local + - name: REDIS_PASSWORD + valueFrom: + secretKeyRef: + name: redis + key: redis-password imagePullPolicy: Always imagePullSecrets: - name: regcred diff --git a/src/config/redis.ts b/src/config/redis.ts index 84c82a8b..ce0e9bd1 100644 --- a/src/config/redis.ts +++ b/src/config/redis.ts @@ -1,4 +1,5 @@ export default { host: process.env.REDIS_HOST || 'localhost', port: +process.env.REDIS_PORT || 6379, + password: process.env.REDIS_PASSWORD || undefined, }