Fix migration workflow: upload as artifact instead of scp to practice EC2

This commit is contained in:
2026-08-13 11:14:25 +07:00
parent 7ebbe1f309
commit a4819b8653
51 changed files with 6830 additions and 8 deletions
@@ -1,3 +1,4 @@
{{- if .Values.aiService.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -105,3 +106,4 @@ spec:
- name: http
port: {{ .Values.aiService.service.port }}
targetPort: http
{{- end }}
@@ -8,6 +8,6 @@ metadata:
type: Opaque
stringData:
postgres-password: {{ .Values.secret.postgresPassword | quote }}
postgres-dsn: {{ printf "postgresql://duoc_thu:%s@%s-postgres:5432/duoc_thu" .Values.secret.postgresPassword (include "medical-chatbot.fullname" .) | quote }}
postgres-dsn: {{ printf "postgresql://duoc_thu:%s@%s:5432/duoc_thu" .Values.secret.postgresPassword (default (printf "%s-postgres" (include "medical-chatbot.fullname" .)) .Values.secret.postgresHost) | quote }}
grafana-admin-password: {{ .Values.secret.grafanaAdminPassword | quote }}
{{- end }}
@@ -1,3 +1,4 @@
{{- if .Values.web.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -58,3 +59,4 @@ spec:
{{- if and (eq .Values.web.service.type "NodePort") .Values.web.service.nodePort }}
nodePort: {{ .Values.web.service.nodePort }}
{{- end }}
{{- end }}