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 - name: web-db-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ["dispatch", "web", "database", "init"] command: ["dispatch", "web", "database", "init"]
env: &dispatchEnv
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:
- name: DISPATCH_UI_URL - name: DISPATCH_UI_URL
value: "{{ .Values.url }}" value: "{{ .Values.url }}"
- name: DATABASE_HOSTNAME - name: DATABASE_HOSTNAME
@ -36,6 +28,15 @@ spec:
value: "{{ .Values.postgres.port }}" value: "{{ .Values.postgres.port }}"
- name: DATABASE_NAME - name: DATABASE_NAME
value: "{{ .Values.postgres.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: envFrom:
- secretRef: - secretRef:
name: {{ .Values.envFromSecret }} name: {{ .Values.envFromSecret }}