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.

27 lines
746 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: extensions/v1beta1
  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. spec:
  20. rules:
  21. - http:
  22. paths:
  23. - backend:
  24. serviceName: {{ $serviceName }}
  25. servicePort: http
  26. path: {{ $ingressPath }}
  27. {{- end -}}
  28. {{- end -}}