Fix migration workflow: upload as artifact instead of scp to practice EC2
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -14,9 +14,13 @@ secret:
|
||||
create: true
|
||||
existingSecret: ""
|
||||
postgresPassword: duoc_thu
|
||||
# Set when postgres runs in a different Application/release (the
|
||||
# data/app split pattern) — overrides the default in-release host.
|
||||
postgresHost: ""
|
||||
grafanaAdminPassword: change-me
|
||||
|
||||
aiService:
|
||||
enabled: true
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: duocthu-ai-service
|
||||
@@ -42,6 +46,7 @@ aiService:
|
||||
limits: { cpu: "1", memory: 1Gi }
|
||||
|
||||
web:
|
||||
enabled: true
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: duocthu-web
|
||||
|
||||
Reference in New Issue
Block a user