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
943 B

  1. {{- if .Values.ingress.enabled }}
  2. {{- range .Values.ingress.hosts }}
  3. apiVersion: extensions/v1beta1
  4. kind: Ingress
  5. metadata:
  6. name: {{ template "wiki.fullname" $ }}
  7. labels:
  8. app: {{ template "wiki.name" $ }}
  9. chart: {{ template "wiki.chart" $ }}
  10. release: {{ $.Release.Name | quote }}
  11. heritage: {{ $.Release.Service | quote }}
  12. annotations:
  13. {{- if .tls }}
  14. ingress.kubernetes.io/secure-backends: "true"
  15. {{- end }}
  16. {{- if .certManager }}
  17. kubernetes.io/tls-acme: "true"
  18. {{- end }}
  19. {{- range $key, $value := .annotations }}
  20. {{ $key }}: {{ $value | quote }}
  21. {{- end }}
  22. spec:
  23. rules:
  24. - host: {{ .name }}
  25. http:
  26. paths:
  27. - path: {{ default "/" .path }}
  28. backend:
  29. serviceName: {{ template "wiki.fullname" $ }}
  30. servicePort: 80
  31. {{- if .tls }}
  32. tls:
  33. - hosts:
  34. - {{ .name }}
  35. secretName: {{ .tlsSecret }}
  36. {{- end }}
  37. ---
  38. {{- end }}
  39. {{- end }}