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.

38 lines
977 B

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