From 0b23a81d40b11cda0fd61b85dc4c80c24b0b8735 Mon Sep 17 00:00:00 2001 From: Justin Reasoner Date: Fri, 15 Nov 2024 14:15:37 -0500 Subject: [PATCH 1/2] add env var Signed-off-by: Justin Reasoner --- http-add-on/templates/interceptor/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http-add-on/templates/interceptor/deployment.yaml b/http-add-on/templates/interceptor/deployment.yaml index 5c83b641..c0683407 100644 --- a/http-add-on/templates/interceptor/deployment.yaml +++ b/http-add-on/templates/interceptor/deployment.yaml @@ -62,6 +62,8 @@ spec: value: "{{ .Values.interceptor.tlsHandshakeTimeout }}" - name: KEDA_HTTP_EXPECT_CONTINUE_TIMEOUT value: "{{ .Values.interceptor.expectContinueTimeout }}" + - name: KEDA_HTTP_ROUTING_HEADER + value: "{{ .Values.interceptor.additionalHttpRoutingHeader }}" {{- if .Values.interceptor.tls.enabled }} - name: KEDA_HTTP_PROXY_TLS_ENABLED value: "true" From 5b0d6b4a7d28d6798640dd44f93ef4f281837ad9 Mon Sep 17 00:00:00 2001 From: Justin Reasoner Date: Fri, 15 Nov 2024 14:20:22 -0500 Subject: [PATCH 2/2] Update values.yaml Signed-off-by: Justin Reasoner --- http-add-on/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http-add-on/values.yaml b/http-add-on/values.yaml index 0436af27..84eb0617 100644 --- a/http-add-on/values.yaml +++ b/http-add-on/values.yaml @@ -164,6 +164,8 @@ interceptor: tlsHandshakeTimeout: 10s # -- Special handling for responses with "Expect: 100-continue" response headers. see https://pkg.go.dev/net/http#Transport under the 'ExpectContinueTimeout' field for more details expectContinueTimeout: 1s + # -- Header-based routing enables you to target a different service for each request by specifying an HTTP header in the HTTP request, e.g. 'additionalHttpRoutingHeader: X-Service-Name' and in the request 'X-Service-Name: service-a' + additionalHttpRoutingHeader: "" # -- Node selector for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)) nodeSelector: {} # -- Tolerations for pod scheduling ([docs](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/))