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.

35 lines
931 B

  1. {{- if .Values.ingress.enabled -}}
  2. {{- if .Values.inf.k8s.local -}}
  3. {{- $ingressPath := include "pathBase" . -}}
  4. {{- $serviceName := .Values.app.svc.identity }}
  5. {{- $name := include "identity-api.fullname" . -}}
  6. apiVersion: networking.k8s.io/v1
  7. kind: Ingress
  8. metadata:
  9. name: {{ $name }}-local
  10. labels:
  11. app: {{ template "identity-api.name" . }}
  12. chart: {{ template "identity-api.chart" . }}
  13. release: {{ .Release.Name }}
  14. heritage: {{ .Release.Service }}
  15. {{- with .Values.ingress.annotations }}
  16. annotations:
  17. {{ toYaml . | indent 4 }}
  18. {{- end }}
  19. {{- if .Values.inf.mesh.enabled }}
  20. {{- with .Values.ingress.mesh.annotations }}
  21. {{ toYaml . | indent 4 }}
  22. {{- end }}
  23. {{- end }}
  24. spec:
  25. rules:
  26. - http:
  27. paths:
  28. - path: {{ $ingressPath }}
  29. pathType: Prefix
  30. backend:
  31. service:
  32. name: {{ $serviceName }}
  33. port:
  34. number: 80
  35. {{- end -}}
  36. {{- end -}}