feat:Support downstream and upstram, which can be configured through helm parameters (#1399)

This commit is contained in:
littlejian
2024-11-01 22:39:19 +08:00
committed by GitHub
parent 035e81a5ca
commit 63d5422da6
2 changed files with 22 additions and 0 deletions

View File

@@ -116,6 +116,12 @@ data:
{{- $existingData = index $existingConfig.data "higress" | default "{}" | fromYaml }}
{{- end }}
{{- $newData := dict }}
{{- if hasKey .Values "upstream" }}
{{- $_ := set $newData "upstream" .Values.upstream }}
{{- end }}
{{- if hasKey .Values "downstream" }}
{{- $_ := set $newData "downstream" .Values.downstream }}
{{- end }}
{{- if and (hasKey .Values "tracing") .Values.tracing.enable }}
{{- $_ := set $newData "tracing" .Values.tracing }}
{{- end }}

View File

@@ -684,3 +684,19 @@ tracing:
# zipkin:
# service: ""
# port: 9411
# Downstream config settings
downstream:
idleTimeout: 180
maxRequestHeadersKb: 60
connectionBufferLimits: 32768
http2:
maxConcurrentStreams: 100
initialStreamWindowSize: 65535
initialConnectionWindowSize: 1048576
routeTimeout: 0
# Upstream config settings
upstream:
idleTimeout: 10
connectionBufferLimits: 10485760