1 {{- if .Values.ingress.enabled -}}
2 {{- $fullName := include "minio.fullname" . -}}
3 {{- $servicePort := .Values.service.port -}}
4 {{- $ingressPath := .Values.ingress.path -}}
5 apiVersion: extensions/v1beta1
10 app: {{ template "minio.name" . }}
11 chart: {{ template "minio.chart" . }}
12 release: {{ .Release.Name }}
13 heritage: {{ .Release.Service }}
14 {{- with .Values.ingress.annotations }}
16 {{ toYaml . | indent 4 }}
19 {{- if .Values.ingress.tls }}
21 {{- range .Values.ingress.tls }}
26 secretName: {{ .secretName }}
30 {{- range .Values.ingress.hosts }}
31 - host: {{ . | quote }}
34 - path: {{ $ingressPath }}
36 serviceName: {{ $fullName }}
37 servicePort: {{ $servicePort }}