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.

37 lines
937 B

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