Skip to content

Commit 71e98e0

Browse files
mateuszmanderatimabbott
authored andcommitted
k8s: Set redis password when setting up the container.
A password needs to be set or Zulip is unable to connect to redis. This is how docker-compose handles this as well.
1 parent 188e08f commit 71e98e0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

kubernetes/zulip-rc.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ spec:
1919
containers:
2020
- name: redis
2121
image: redis:alpine
22+
command:
23+
- "sh"
24+
- "-euc"
25+
- |
26+
echo "requirepass '$$REDIS_PASSWORD'" > /etc/redis.conf
27+
exec redis-server /etc/redis.conf
28+
env:
29+
- name: REDIS_PASSWORD
30+
value: "REPLACE_WITH_SECURE_REDIS_PASSWORD"
2231
resources:
2332
limits:
2433
cpu: 50m
@@ -102,6 +111,8 @@ spec:
102111
value: "REPLACE_WITH_SECURE_POSTGRES_PASSWORD"
103112
- name: SECRETS_rabbitmq_password
104113
value: "REPLACE_WITH_SECURE_RABBITMQ_PASSWORD"
114+
- name: SECRETS_redis_password
115+
value: "REPLACE_WITH_SECURE_REDIS_PASSWORD"
105116
- name: SSL_CERTIFICATE_GENERATION
106117
value: "self-signed"
107118
# Uncomment this when configuring the mobile push notifications service

0 commit comments

Comments
 (0)