Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add http routing header #708

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions http-add-on/templates/interceptor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions http-add-on/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/))
Expand Down
Loading