Ingress ServicePort from Values

Signed-off-by: tillepille <github@tillepille.io>
pull/5755/head
Tim Schrumpf 6 years ago committed by tillepille
parent 9fb19967ba
commit 741dd4a93b

@ -130,6 +130,7 @@ const defaultIgnore = `# Patterns to ignore when building packages.
const defaultIngress = `{{- if .Values.ingress.enabled -}}
{{- $fullName := include "<CHARTNAME>.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
@ -160,7 +161,7 @@ spec:
- path: {{ . }}
backend:
serviceName: {{ $fullName }}
servicePort: http
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}

Loading…
Cancel
Save