Add some env variables to the web deployment

This allows the start script to properly wait on services to come
online rather than getting stuck and waiting for the full timeout
This commit is contained in:
Matthew Jones 2018-08-13 13:27:00 -04:00
parent 8723508225
commit 4dcd379d1e

View File

@ -133,6 +133,21 @@ spec:
- name: {{ kubernetes_deployment_name }}-web
image: {{ kubernetes_web_image | default(dockerhub_web_image) }}
imagePullPolicy: Always
env:
- name: DATABASE_USER
value: {{ pg_username }}
- name: DATABASE_NAME
value: {{ pg_database }}
- name: DATABASE_HOST
value: {{ pg_hostname|default('postgresql') }}
- name: DATABASE_PORT
value: "{{ pg_port|default('5432') }}"
- name: DATABASE_PASSWORD
value: {{ pg_password }}
- name: MEMCACHED_HOST
value: {{ memcached_hostname|default('localhost') }}
- name: RABBITMQ_HOST
value: {{ rabbitmq_hostname|default('localhost') }}
ports:
- containerPort: 8052
volumeMounts: