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.

33 lines
917 B

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