kubernetes: Configure HTTPS when not DISABLE_HTTPS.

This commit is contained in:
Alessandro Ogier
2025-01-16 18:15:32 +01:00
committed by GitHub
parent bbacfbc601
commit bde1d6bb31
2 changed files with 7 additions and 0 deletions

View File

@@ -8,7 +8,11 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
{{- if .Values.zulip.environment.DISABLE_HTTPS }}
targetPort: http
{{- else }}
targetPort: https
{{- end }}
protocol: TCP
name: http
selector:

View File

@@ -50,6 +50,9 @@ spec:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
volumeMounts:
- name: {{ include "zulip.fullname" . }}-persistent-storage
mountPath: /data