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 }}