Skip to content

Commit

Permalink
fix: use redis password
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Feb 1, 2024
1 parent 43bf0fe commit 46bbb80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/config/redis.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default {
host: process.env.REDIS_HOST || 'localhost',
port: +process.env.REDIS_PORT || 6379,
password: process.env.REDIS_PASSWORD || undefined,
}

0 comments on commit 46bbb80

Please sign in to comment.