diff --git a/charts/hypo/templates/portal-cart/ingress.yaml b/charts/hypo/templates/portal-cart/ingress.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e0aedb6b895adf207eab90683d4a0fbe930c0e30 --- /dev/null +++ b/charts/hypo/templates/portal-cart/ingress.yaml @@ -0,0 +1,26 @@ +{{ $ingressNginx := index .Values "ingress-nginx" }} +{{ $portalCart := index .Values "portal-cart" }} +{{- if $portalCart.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ template "hypo.portal-cart.fullname" . }} + namespace: {{ .Release.Namespace }} + annotations: + nginx.ingress.kubernetes.io/ssl-redirect: "false" +spec: + ingressClassName: {{ $ingressNginx.controller.ingressClass }} + rules: + - http: + paths: + - path: /hypo-portal + pathType: Prefix + backend: + service: + name: {{ template "hypo.portal-cart.fullname" . }} + port: + number: {{ $portalCart.service.port }} + {{ if eq .Values.installation "prod" }} + host: hyper-orchestrator.eu + {{- end }} +{{- end -}} diff --git a/charts/hypo/templates/tmf-api/ingress.yaml b/charts/hypo/templates/tmf-api/ingress.yaml index a683276d27bdbd6a831ea0336447626fe200f2e4..f78a716464fdfa010ae8359fb65bb9e424788990 100644 --- a/charts/hypo/templates/tmf-api/ingress.yaml +++ b/charts/hypo/templates/tmf-api/ingress.yaml @@ -19,7 +19,7 @@ spec: service: name: {{ template "hypo.tmf-api.fullname" . }} port: - number: 8088 + number: {{ $tmfApi.service.port }} {{ if eq .Values.installation "prod" }} host: hyper-orchestrator.eu {{- end }}