From 986c889262b028c961d0379bc0df540acb433d03 Mon Sep 17 00:00:00 2001 From: Luna Xu Date: Tue, 21 May 2024 14:44:30 +0000 Subject: [PATCH] add password to redis commander --- .../charts/redis/templates/redis-secret.yaml | 1 + .../charts/redis/templates/redis.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/charts/csm-authorization/charts/redis/templates/redis-secret.yaml b/charts/csm-authorization/charts/redis/templates/redis-secret.yaml index 1c5efcfc..cbe2d769 100644 --- a/charts/csm-authorization/charts/redis/templates/redis-secret.yaml +++ b/charts/csm-authorization/charts/redis/templates/redis-secret.yaml @@ -6,3 +6,4 @@ metadata: type: kubernetes.io/basic-auth stringData: password: K@ravi123! + commander_user: dev diff --git a/charts/csm-authorization/charts/redis/templates/redis.yaml b/charts/csm-authorization/charts/redis/templates/redis.yaml index 615a3a3e..e3685570 100644 --- a/charts/csm-authorization/charts/redis/templates/redis.yaml +++ b/charts/csm-authorization/charts/redis/templates/redis.yaml @@ -143,6 +143,16 @@ spec: secretKeyRef: name: redis-csm-secret key: password + - name: HTTP_PASSWORD + valueFrom: + secretKeyRef: + name: redis-csm-secret + key: password + - name: HTTP_USER + valueFrom: + secretKeyRef: + name: redis-csm-secret + key: commander_user ports: - name: {{ .Values.redis.rediscommander }} containerPort: 8081