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.

34 lines
912 B

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. spec:
  18. {{- if .Values.ingress.tls }}
  19. tls:
  20. {{- range .Values.ingress.tls }}
  21. - hosts:
  22. - {{ .Values.inf.k8s.dns }}
  23. secretName: {{ .secretName }}
  24. {{- end }}
  25. {{- end }}
  26. rules:
  27. - host: {{ .Values.inf.k8s.dns }}
  28. http:
  29. paths:
  30. - path: {{ $ingressPath }}
  31. backend:
  32. serviceName: {{ .Values.app.svc.status }}
  33. servicePort: http
  34. {{- end }}