From 2928c725ee8e69a0fea2695f06ca59a937801c8c Mon Sep 17 00:00:00 2001 From: Helene Durand Date: Wed, 5 Jun 2024 09:07:51 +0200 Subject: [PATCH] MINOR: allow https only for IC proxy --- .../templates/controller-proxy-service.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kubernetes-ingress/templates/controller-proxy-service.yaml b/kubernetes-ingress/templates/controller-proxy-service.yaml index 3864528..161072a 100644 --- a/kubernetes-ingress/templates/controller-proxy-service.yaml +++ b/kubernetes-ingress/templates/controller-proxy-service.yaml @@ -52,6 +52,18 @@ spec: nodePort: {{ .Values.controller.service.nodePorts.http }} {{- end }} {{- end }} + {{- if .Values.controller.service.enablePorts.https }} + - name: https + port: {{ .Values.controller.service.ports.https }} + protocol: TCP + {{- if semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }} + appProtocol: https + {{- end }} + targetPort: {{ .Values.controller.service.targetPorts.https }} + {{- if .Values.controller.service.nodePorts.https }} + nodePort: {{ .Values.controller.service.nodePorts.https }} + {{- end }} + {{- end }} selector: app.kubernetes.io/name: {{ include "kubernetes-ingress.serviceProxyName" . }} app.kubernetes.io/instance: {{ .Release.Name }}