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
619 B
28 lines
619 B
{{- $ingressPaths := .Values.ingress.paths -}}
|
|
apiVersion: extensions/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: webingress
|
|
spec:
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
{{- range .Values.ingress.tls }}
|
|
- hosts:
|
|
{{- range .hosts }}
|
|
- {{ . | quote }}
|
|
{{- end }}
|
|
secretName: {{ .secretName }}
|
|
{{- end }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.ingress.hosts }}
|
|
- host: {{ . | quote }}
|
|
http:
|
|
paths:
|
|
{{- range $ingressPaths }}
|
|
- path: {{ . }}
|
|
backend:
|
|
serviceName: web
|
|
servicePort: http
|
|
{{- end }}
|
|
{{- end }}
|
|
|