diff --git a/haproxy-ingress/templates/controller-service.yaml b/haproxy-ingress/templates/controller-service.yaml index b78efd1..e4929ee 100644 --- a/haproxy-ingress/templates/controller-service.yaml +++ b/haproxy-ingress/templates/controller-service.yaml @@ -52,7 +52,7 @@ spec: - name: "http-{{ .port }}" port: {{ .port }} protocol: TCP - targetPort: {{ .targetPort }} + targetPort: {{ .targetPort | default "http" }} {{- if (not (empty .nodePort)) }} nodePort: {{ .nodePort }} {{- end }} @@ -61,7 +61,7 @@ spec: - name: "https-{{ .port }}" port: {{ .port }} protocol: TCP - targetPort: {{ .targetPort }} + targetPort: {{ .targetPort | default "https" }} {{- if (not (empty .nodePort)) }} nodePort: {{ .nodePort }} {{- end }}