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.
 
 
 

39 lines
1017 B

  1. {{- if .Values.ingress.enabled -}}
  2. {{- $fullName := include "transfersh.fullname" . -}}
  3. {{- $ingressPath := .Values.ingress.path -}}
  4. apiVersion: extensions/v1beta1
  5. kind: Ingress
  6. metadata:
  7. name: {{ $fullName }}
  8. labels:
  9. app.kubernetes.io/name: {{ include "transfersh.name" . }}
  10. helm.sh/chart: {{ include "transfersh.chart" . }}
  11. app.kubernetes.io/instance: {{ .Release.Name }}
  12. app.kubernetes.io/managed-by: {{ .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. - {{ . | quote }}
  24. {{- end }}
  25. secretName: {{ .secretName }}
  26. {{- end }}
  27. {{- end }}
  28. rules:
  29. {{- range .Values.ingress.hosts }}
  30. - host: {{ . | quote }}
  31. http:
  32. paths:
  33. - path: {{ $ingressPath }}
  34. backend:
  35. serviceName: {{ $fullName }}
  36. servicePort: http
  37. {{- end }}
  38. {{- end }}