Skip to content

Commit

Permalink
fix(xds): explicitly set initial fetch timeout to zero to keep Envoy …
Browse files Browse the repository at this point in the history
…wait for xds resources (#11024)

* fix(xds): explicitly set initial fetch timeout to zero to keep Envoy wait for xds resources

---------

Signed-off-by: Jay Chen <1180092+jijiechen@users.noreply.github.com>
  • Loading branch information
jijiechen committed Aug 6, 2024
1 parent 8a27969 commit 453360d
Show file tree
Hide file tree
Showing 197 changed files with 728 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ connectTimeout: 5s
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-c58ee0574727fc94
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ filterChains:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: gateway:HTTP:8080:*
requestHeadersTimeout: 0.500s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ connectTimeout: 5s
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-26cb64fa4e85e7b7
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ filterChains:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8080:*
requestHeadersTimeout: 0.500s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
healthChecks:
- eventLogger:
Expand Down Expand Up @@ -67,6 +68,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-945e63bff332f46a
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
healthChecks:
- eventLogger:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand All @@ -19,6 +20,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-c72efb5be46fae6b
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend_svc_80
type: EDS
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
resources:
- name: backend-c72efb5be46fae6b
resource:
'@type': type.googleapis.com/envoy.config.cluster.v3.Cluster
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-c72efb5be46fae6b
transportSocket:
name: envoy.transport_sockets.tls
typedConfig:
'@type': type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
commonTlsContext:
alpnProtocols:
- kuma
combinedValidationContext:
defaultValidationContext:
matchTypedSubjectAltNames:
- matcher:
exact: spiffe://default/backend
sanType: URI
validationContextSdsSecretConfig:
name: mesh_ca:secret:default
sdsConfig:
ads: {}
resourceApiVersion: V3
tlsCertificateSdsSecretConfigs:
- name: identity_cert:secret:default
sdsConfig:
ads: {}
resourceApiVersion: V3
sni: backend{mesh=default,region=us}
type: EDS
typedExtensionProtocolOptions:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicitHttpConfig:
http2ProtocolOptions: {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-348a834721ead661
perConnectionBufferLimitBytes: 32768
Expand All @@ -24,6 +25,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-6d0a1cf7605e8b1e
perConnectionBufferLimitBytes: 32768
Expand All @@ -42,6 +44,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-a285094d9b0d7032
perConnectionBufferLimitBytes: 32768
Expand All @@ -60,6 +63,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-dda53ef9426194b2
perConnectionBufferLimitBytes: 32768
Expand All @@ -78,6 +82,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-ed49e74a1f66b25c
perConnectionBufferLimitBytes: 32768
Expand All @@ -96,6 +101,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-wild-aac0221a73d6116a
perConnectionBufferLimitBytes: 32768
Expand All @@ -114,6 +120,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-wild-dev-52ee11d917faac3e
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8080:*
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -101,6 +102,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8081:*
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -159,6 +161,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8082:*
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -221,6 +224,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTPS:8083:*.secure.dev
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -283,6 +287,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTPS:8083:*.super-secure.dev
requestHeadersTimeout: 0.500s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-26cb64fa4e85e7b7
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8080:*
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -101,6 +102,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8081:*
requestHeadersTimeout: 0.500s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend-26cb64fa4e85e7b7
perConnectionBufferLimitBytes: 32768
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8080:*
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -101,6 +102,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8081:*
requestHeadersTimeout: 0.500s
Expand Down Expand Up @@ -159,6 +161,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8082:*
requestHeadersTimeout: 0.500s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand All @@ -19,6 +20,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: payments-9f43ffb3c22f8c19
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: backend
type: EDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
lbPolicy: RANDOM
name: backend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
lbPolicy: RING_HASH
name: backend-d230d75c0fcb71dc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ resources:
rds:
configSource:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
routeConfigName: sample-gateway:HTTP:8080:*
requestHeadersTimeout: 0.500s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
edsClusterConfig:
edsConfig:
ads: {}
initialFetchTimeout: 0s
resourceApiVersion: V3
name: mesh-1:eds-cluster
type: EDS
Expand Down
Loading

0 comments on commit 453360d

Please sign in to comment.