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
1.0 KiB

6 years ago
6 years ago
6 years ago
6 years ago
  1. {{- if .Values.ingress.enabled -}}
  2. {{- $fullName := include "webstatus.fullname" . -}}
  3. {{- $ingressPath := include "pathBase" . -}}
  4. apiVersion: extensions/v1beta1
  5. kind: Ingress
  6. metadata:
  7. name: {{ template "webstatus.fullname" . }}
  8. labels:
  9. app: {{ template "webstatus.name" . }}
  10. chart: {{ template "webstatus.chart" . }}
  11. release: {{ .Release.Name }}
  12. heritage: {{ .Release.Service }}
  13. {{- with .Values.ingress.annotations }}
  14. annotations:
  15. {{ toYaml . | indent 4 }}
  16. {{- end }}
  17. {{- if .Values.inf.mesh.enabled }}
  18. {{- with .Values.ingress.mesh.annotations }}
  19. {{ toYaml . | indent 4 }}
  20. {{- end }}
  21. {{- end }}
  22. spec:
  23. {{- if .Values.ingress.tls }}
  24. tls:
  25. {{- range .Values.ingress.tls }}
  26. - hosts:
  27. - {{ .Values.inf.k8s.dns }}
  28. secretName: {{ .secretName }}
  29. {{- end }}
  30. {{- end }}
  31. rules:
  32. - host: {{ .Values.inf.k8s.dns }}
  33. http:
  34. paths:
  35. - path: {{ $ingressPath }}
  36. backend:
  37. serviceName: {{ .Values.app.svc.status }}
  38. servicePort: http
  39. {{- end }}