mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
717 B
28 lines
717 B
{{- define "common.ingress.tpl" -}}
|
|
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
{{ template "common.metadata" . }}
|
|
{{- if .Values.ingress.annotations }}
|
|
annotations:
|
|
{{ include "common.annotate" .Values.ingress.annotations | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
{{- range $host := .Values.ingress.hosts }}
|
|
- host: {{ $host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
backend:
|
|
serviceName: {{ template "common.fullname" $ }}
|
|
servicePort: 80
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
{{ toYaml .Values.ingress.tls | indent 4 }}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- define "common.ingress" -}}
|
|
{{- template "common.util.merge" (append . "common.ingress.tpl") -}}
|
|
{{- end -}}
|