chore(dispatch) add env to web init container

This commit is contained in:
Tommy 2023-12-16 18:13:46 +01:00
parent 4d5e982db0
commit 6679213383
No known key found for this signature in database

View file

@ -19,15 +19,7 @@ spec:
- name: web-db-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ["dispatch", "web", "database", "init"]
containers:
- name: web
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
ports:
- containerPort: 8000
env:
env: &dispatchEnv
- name: DISPATCH_UI_URL
value: "{{ .Values.url }}"
- name: DATABASE_HOSTNAME
@ -36,6 +28,15 @@ spec:
value: "{{ .Values.postgres.port }}"
- name: DATABASE_NAME
value: "{{ .Values.postgres.database_name }}"
containers:
- name: web
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["dispatch", "server", "start", "dispatch.main:app", "--host=0.0.0.0"]
ports:
- containerPort: 8000
env: *dispatchEnv
envFrom:
- secretRef:
name: {{ .Values.envFromSecret }}