fix(querybook): use production mode

This commit is contained in:
Masaki Yatsu
2025-11-16 23:23:59 +09:00
parent c0684b4645
commit 2e5c93ee01
2 changed files with 50 additions and 6 deletions

View File

@@ -0,0 +1,42 @@
diff --git a/helm/templates/web/web-deployment.yaml b/helm/templates/web/web-deployment.yaml
index c520cf8..d3c2e50 100644
--- a/helm/templates/web/web-deployment.yaml
+++ b/helm/templates/web/web-deployment.yaml
@@ -26,13 +26,24 @@ spec:
release: {{ .Release.Name }}
component: {{ .Values.web.name }}
spec:
+ {{- with .Values.web.initContainers }}
+ initContainers:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
containers:
- name: {{ .Values.web.name }}
args:
- - ./querybook/scripts/bundled_docker_run_web
- - --initdb
+ - /bin/bash
+ - -c
+ - |
+ ./querybook/scripts/init_db
+ ./querybook/scripts/runservice web {{ .Values.web.service.containerPort }}
image: "{{ .Values.web.image.repository }}:{{ .Values.web.image.tag }}"
imagePullPolicy: {{ .Values.web.image.pullPolicy }}
+ {{- with .Values.web.volumeMounts }}
+ volumeMounts:
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
env:
- name: PORT
value: "{{ .Values.web.service.containerPort }}"
@@ -64,6 +75,10 @@ spec:
- containerPort: {{ .Values.web.service.containerPort }}
resources:
{{- toYaml .Values.web.resources | nindent 12 }}
+ {{- with .Values.web.volumes }}
+ volumes:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
restartPolicy: Always
{{- with .Values.nodeSelector }}
nodeSelector: