Skip to content

Commit

Permalink
Support disable keep http connection alive
Browse files Browse the repository at this point in the history
Signed-off-by: penghuazhou <1021556870@qq.com>
  • Loading branch information
penghuazhou committed Dec 8, 2022
1 parent bdd5dfc commit 731973d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions keda/templates/12-keda-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ spec:
- name: KEDA_HTTP_DEFAULT_TIMEOUT
value: {{ .Values.http.timeout | quote }}
{{- end }}
{{- if ( not .Values.http.keepAlive.enabled ) }}
- name: KEDA_HTTP_DISABLE_KEEP_ALIVE
value: "true"
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 -}}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions keda/templates/22-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ spec:
- name: KEDA_HTTP_DEFAULT_TIMEOUT
value: {{ .Values.http.timeout | quote }}
{{- end }}
{{- if ( not .Values.http.keepAlive.enabled ) }}
- name: KEDA_HTTP_DISABLE_KEEP_ALIVE
value: "true"
{{- end }}
{{- if .Values.env }}
{{- toYaml .Values.env | nindent 12 -}}
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion keda/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ podIdentity:
# Set to the value of the ARN of an IAM role with a web identity provider.
# This will be set as an annotation on the KEDA service account.
roleArn: ""
# Sets the use of an STS regional endpoint instead of global.
# Sets the use of an STS regional endpoint instead of global.
# Recommended to use regional endpoint in almost all cases.
# This will be set as an annotation on the KEDA service account.
stsRegionalEndpoints: "true"
Expand Down Expand Up @@ -259,6 +259,8 @@ priorityClassName: ""
## reasonable default
http:
timeout: 3000
keepAlive:
enabled: true

## Extra KEDA Operator and Metrics Adapter container arguments
extraArgs:
Expand Down

0 comments on commit 731973d

Please sign in to comment.