Skip to content

Commit c3f7f8b

Browse files
authored
MINOR: kubernetes-ingress: allow https only for IC proxy (#246)
1 parent 8c916fb commit c3f7f8b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

kubernetes-ingress/templates/controller-proxy-service.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ spec:
5252
nodePort: {{ .Values.controller.service.nodePorts.http }}
5353
{{- end }}
5454
{{- end }}
55+
{{- if .Values.controller.service.enablePorts.https }}
56+
- name: https
57+
port: {{ .Values.controller.service.ports.https }}
58+
protocol: TCP
59+
{{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }}
60+
appProtocol: https
61+
{{- end }}
62+
targetPort: {{ .Values.controller.service.targetPorts.https }}
63+
{{- if .Values.controller.service.nodePorts.https }}
64+
nodePort: {{ .Values.controller.service.nodePorts.https }}
65+
{{- end }}
66+
{{- end }}
5567
selector:
5668
app.kubernetes.io/name: {{ include "kubernetes-ingress.serviceProxyName" . }}
5769
app.kubernetes.io/instance: {{ .Release.Name }}

0 commit comments

Comments
 (0)