github.com/rohankumardubey/draft-classic@v0.16.0/packs/erlang/charts/templates/ingress.yaml (about) 1 {{- if .Values.ingress.enabled -}} 2 {{- $fullName := include "chart.fullname" . -}} 3 {{- $ingressPath := .Values.ingress.path -}} 4 apiVersion: extensions/v1beta1 5 kind: Ingress 6 metadata: 7 name: {{ $fullName }} 8 labels: 9 app: {{ template "chart.name" . }} 10 chart: {{ template "chart.chart" . }} 11 release: {{ .Release.Name }} 12 heritage: {{ .Release.Service }} 13 {{- with .Values.ingress.annotations }} 14 annotations: 15 {{ toYaml . | indent 4 }} 16 {{- end }} 17 spec: 18 {{- if .Values.ingress.tls }} 19 tls: 20 {{- range .Values.ingress.tls }} 21 - hosts: 22 {{- range .hosts }} 23 - {{ . }} 24 {{- end }} 25 secretName: {{ .secretName }} 26 {{- end }} 27 {{- end }} 28 rules: 29 {{- range .Values.ingress.hosts }} 30 - host: {{ . }} 31 http: 32 paths: 33 - path: {{ $ingressPath }} 34 backend: 35 serviceName: {{ $fullName }} 36 servicePort: http 37 {{- end }} 38 {{- end }}