From 0419024c6a710d9d20973cb85331d88f1aaac5fe Mon Sep 17 00:00:00 2001 From: Pantelis Malekas Date: Tue, 4 Aug 2026 11:45:11 +0300 Subject: [PATCH] feat: ingress for portal cart --- .../hypo/templates/portal-cart/ingress.yaml | 26 +++++++++++++++++++ charts/hypo/templates/tmf-api/ingress.yaml | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 charts/hypo/templates/portal-cart/ingress.yaml diff --git a/charts/hypo/templates/portal-cart/ingress.yaml b/charts/hypo/templates/portal-cart/ingress.yaml new file mode 100644 index 0000000..e0aedb6 --- /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 a683276..f78a716 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 }} -- GitLab