kubernetes: Fix hostnames in the zulip pod

All of the containers are running on a single pod so we can use
localhost to connect to the other services. After this change database
migrations are completing and the app server is starting. It seems
rabbit MQ is still failing to run correctly.
This commit is contained in:
Jason Michakski
2018-05-16 14:03:04 -07:00
committed by Tim Abbott
parent 19f11de2c9
commit 981da0b0b5

View File

@@ -49,11 +49,11 @@ spec:
cpu: 80m
memory: 768Mi
env:
- name: DB_NAME
- name: POSTGRES_DB
value: zulip
- name: DB_USER
- name: POSTGRES_USER
value: zulip
- name: DB_PASS
- name: POSTGRES_PASSWORD
value: zulip
volumeMounts:
- name: postgresql-persistent-storage
@@ -67,13 +67,13 @@ spec:
env:
# Please take a look at the environment variables in docker-compose.yml for all required env variables!
- name: DB_HOST
value: "database"
value: "localhost"
- name: MEMCACHED_HOST
value: "memcached"
value: "localhost"
- name: REDIS_HOST
value: "redis"
value: "localhost"
- name: RABBITMQ_HOST
value: "rabbitmq"
value: "localhost"
- name: ZULIP_AUTH_BACKENDS
value: "EmailAuthBackend"
- name: SECRETS_email_password