Skip to content

Commit bde1d6b

Browse files
authored
kubernetes: Configure HTTPS when not DISABLE_HTTPS.
1 parent bbacfbc commit bde1d6b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

kubernetes/chart/zulip/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ spec:
88
type: {{ .Values.service.type }}
99
ports:
1010
- port: {{ .Values.service.port }}
11+
{{- if .Values.zulip.environment.DISABLE_HTTPS }}
1112
targetPort: http
13+
{{- else }}
14+
targetPort: https
15+
{{- end }}
1216
protocol: TCP
1317
name: http
1418
selector:

kubernetes/chart/zulip/templates/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ spec:
5050
- name: http
5151
containerPort: 80
5252
protocol: TCP
53+
- name: https
54+
containerPort: 443
55+
protocol: TCP
5356
volumeMounts:
5457
- name: {{ include "zulip.fullname" . }}-persistent-storage
5558
mountPath: /data

0 commit comments

Comments
 (0)