feat(ci): update helm config (#157)

This commit is contained in:
Ryo
2025-07-28 19:17:56 +08:00
committed by GitHub
parent cc593fc270
commit a0d3bcf998
12 changed files with 200 additions and 282 deletions

View File

@@ -57,8 +57,10 @@ spec:
image: "{{ .Values.cozeServer.image.repository }}:{{ .Values.cozeServer.image.tag }}"
imagePullPolicy: {{ .Values.cozeServer.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.cozeServer.service.port }}
{{- range .Values.cozeServer.service.ports }}
- name: {{ .name }}
containerPort: {{ .targetPort }}
{{- end }}
env:
- name: MYSQL_HOST
value: "{{ include "opencoze.fullname" . }}-mysql"
@@ -95,13 +97,18 @@ spec:
value: {{ $val | quote }}
{{- end }}
{{- if .Values.cozeServer.confHostPath }}
volumeMounts:
- name: model-config
mountPath: /app/resources/conf/model
{{- if .Values.cozeServer.confHostPath }}
- name: opencoze-server-conf
mountPath: /app/resources/conf
{{- end }}
{{- if .Values.cozeServer.confHostPath }}
volumes:
- name: model-config
configMap:
name: {{ include "opencoze.fullname" . }}-model-config
{{- if .Values.cozeServer.confHostPath }}
- name: opencoze-server-conf
hostPath:
path: {{ .Values.cozeServer.confHostPath }}