From 31ff31d218cfa1f52c5cb946a51013b8e24d9356 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 15 Apr 2025 11:24:20 +0200 Subject: [PATCH] feat(assist-api): added default rules section to ingress --- .../charts/assist-api/templates/ingress.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/scripts/helmcharts/openreplay/charts/assist-api/templates/ingress.yaml b/scripts/helmcharts/openreplay/charts/assist-api/templates/ingress.yaml index c9def9f86..99d7673af 100644 --- a/scripts/helmcharts/openreplay/charts/assist-api/templates/ingress.yaml +++ b/scripts/helmcharts/openreplay/charts/assist-api/templates/ingress.yaml @@ -11,9 +11,9 @@ metadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: /$1 nginx.ingress.kubernetes.io/upstream-hash-by: $http_x_forwarded_for - {{- with .Values.ingress.annotations }} + {{- with .Values.ingress.annotations }} {{- toYaml . | nindent 4 }} - {{- end }} + {{- end }} spec: ingressClassName: "{{ tpl .Values.ingress.className . }}" tls: @@ -21,5 +21,16 @@ spec: - {{ .Values.global.domainName }} {{- if .Values.ingress.tls.secretName}} secretName: {{ .Values.ingress.tls.secretName }} - {{- end}} + {{- end }} + rules: + - host: {{ .Values.global.domainName }} + http: + paths: + - path: /?(.*) + pathType: Prefix + backend: + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} {{- end }}