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
1019 B

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