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.

51 lines
1.3 KiB

6 years ago
6 years ago
6 years ago
5 years ago
6 years ago
5 years ago
6 years ago
5 years ago
6 years ago
6 years ago
5 years ago
6 years ago
  1. {{- if .Values.ingress.enabled -}}
  2. {{- $fullName := include "webstatus.fullname" . -}}
  3. {{- $ingressPath := include "pathBase" . -}}
  4. {{- $serviceName := $.Values.app.svc.status -}}
  5. apiVersion: networking.k8s.io/v1
  6. kind: Ingress
  7. metadata:
  8. name: {{ template "webstatus.fullname" . }}
  9. labels:
  10. app: {{ template "webstatus.name" . }}
  11. chart: {{ template "webstatus.chart" . }}
  12. release: {{ .Release.Name }}
  13. heritage: {{ .Release.Service }}
  14. {{- with .Values.ingress.annotations }}
  15. annotations:
  16. {{ toYaml . | indent 4 }}
  17. {{- end }}
  18. {{- if and .Values.inf.tls.enabled .Values.inf.tls.issuer }}
  19. cert-manager.io/issuer: {{ .Values.inf.tls.issuer }}
  20. {{- end }}
  21. {{- if .Values.inf.mesh.enabled }}
  22. {{- with .Values.ingress.mesh.annotations }}
  23. {{ toYaml . | indent 4 }}
  24. {{- end }}
  25. {{- end }}
  26. spec:
  27. {{- if .Values.ingress.tls }}
  28. tls:
  29. {{- range .Values.ingress.tls }}
  30. - hosts:
  31. {{- range .hosts }}
  32. - {{ . }}
  33. {{- end }}
  34. secretName: {{ .secretName }}
  35. {{- end }}
  36. {{- end }}
  37. rules:
  38. {{- range .Values.ingress.hosts }}
  39. - host: {{ . }}
  40. http:
  41. paths:
  42. - path: {{ $ingressPath }}
  43. pathType: Prefix
  44. backend:
  45. service:
  46. name: {{ $serviceName }}
  47. port:
  48. number: 80
  49. {{- end }}
  50. {{- end }}