From 6e6f8a36d10c374bb042b13cc416e906f2d2b636 Mon Sep 17 00:00:00 2001 From: Varac Date: Fri, 17 Feb 2023 17:26:34 +0100 Subject: [PATCH] Fix streaming route Until now, only /api/v1/streaming/ was routed to the streaming pod, while /api/v1/streaming/* was falsely routed to the web pod, which returned 404 for each request. Now everything below /api/v1/streaming will reach the streaming pod. Fixes: #36 --- .gitignore | 1 + templates/ingress.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee3892e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +charts/ diff --git a/templates/ingress.yaml b/templates/ingress.yaml index e5c5e1d..5a3409a 100644 --- a/templates/ingress.yaml +++ b/templates/ingress.yaml @@ -52,7 +52,7 @@ spec: {{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }} pathType: Prefix {{- end }} - - path: {{ .path }}api/v1/streaming/ + - path: {{ .path }}api/v1/streaming backend: {{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }} service: @@ -64,7 +64,7 @@ spec: servicePort: {{ $streamingPort }} {{- end }} {{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }} - pathType: Exact + pathType: Prefix {{- end }} {{- end }} {{- end }}