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.

41 lines
1.1 KiB

  1. {{- if .Values.ingress.enabled -}}
  2. {{- $ingressPath := include "pathBase" . -}}
  3. {{- $serviceName := .Values.app.svc.webshoppingagg }}
  4. apiVersion: extensions/v1beta1
  5. kind: Ingress
  6. metadata:
  7. name: {{ template "webshoppingagg.fullname" . }}
  8. labels:
  9. app: {{ template "webshoppingagg.name" . }}
  10. chart: {{ template "webshoppingagg.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. {{- range .Values.ingress.hosts }}
  33. - host: {{ . }}
  34. http:
  35. paths:
  36. - path: {{ $ingressPath }}
  37. backend:
  38. serviceName: {{ $serviceName }}
  39. servicePort: http
  40. {{- end }}
  41. {{- end }}