Skip to content

Commit b2596d3

Browse files
author
Alessandro Ogier
committed
support exposing https port if not DISABLE_HTTPS
1 parent 88a1b56 commit b2596d3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

kubernetes/chart/zulip/templates/service.yaml

+4
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

+3
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)