diff --git a/kubernetes/chart/zulip/templates/service.yaml b/kubernetes/chart/zulip/templates/service.yaml index 56eac332ad..8bb9ac9f8c 100644 --- a/kubernetes/chart/zulip/templates/service.yaml +++ b/kubernetes/chart/zulip/templates/service.yaml @@ -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: diff --git a/kubernetes/chart/zulip/templates/statefulset.yaml b/kubernetes/chart/zulip/templates/statefulset.yaml index dea51642fa..952d725f48 100644 --- a/kubernetes/chart/zulip/templates/statefulset.yaml +++ b/kubernetes/chart/zulip/templates/statefulset.yaml @@ -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