Skip to content

Commit

Permalink
added xds test files
Browse files Browse the repository at this point in the history
Signed-off-by: Luv <[email protected]>
  • Loading branch information
luvk1412 committed Sep 26, 2024
1 parent 352c016 commit d83f768
Show file tree
Hide file tree
Showing 15 changed files with 197 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "metrics-req-resp-sizes-stats"
metrics:
enableRequestResponseSizesStats: true
http:
- name: "listener-enable-req-resp-sizes-stats"
address: "0.0.0.0"
port: 10080
hostnames:
- "*"
path:
mergeSlashes: true
escapedSlashesAction: UnescapeAndRedirect
routes:
- name: "first-route"
hostname: "*"
destination:
name: "first-route-dest"
settings:
- endpoints:
- host: "1.2.3.4"
port: 50000
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "metrics-req-resp-sizes-stats"
metrics:
enableRequestResponseSizesStats: true
tcp:
- name: "tcp-route-enable-req-resp-sizes-stats"
address: "0.0.0.0"
port: 10080
destination:
name: "tcp-route-simple-dest"
settings:
- endpoints:
- host: "1.2.3.4"
port: 50000
- host: "5.6.7.8"
port: 50001
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "metrics-req-resp-sizes-stats"
metrics:
enableRequestResponseSizesStats: true
udp:
- name: "udp-route-enable-req-resp-sizes-stats"
address: "0.0.0.0"
port: 10080
route:
name: "udp-route"
destination:
name: "udp-route-dest"
settings:
- endpoints:
- host: "1.2.3.4"
port: 50000
- host: "5.6.7.8"
port: 50001
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- circuitBreakers:
thresholds:
- maxRetries: 1024
commonLbConfig:
localityWeightedLbConfig: {}
connectTimeout: 10s
dnsLookupFamily: V4_ONLY
edsClusterConfig:
edsConfig:
ads: {}
resourceApiVersion: V3
serviceName: first-route-dest
lbPolicy: LEAST_REQUEST
name: first-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
trackClusterStats:
requestResponseSizes: true
type: EDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- clusterName: first-route-dest
endpoints:
- lbEndpoints:
- endpoint:
address:
socketAddress:
address: 1.2.3.4
portValue: 50000
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: first-route-dest/backend/0
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
- address:
socketAddress:
address: 0.0.0.0
portValue: 10080
defaultFilterChain:
filters:
- name: envoy.filters.network.http_connection_manager
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
commonHttpProtocolOptions:
headersWithUnderscoresAction: REJECT_REQUEST
http2ProtocolOptions:
initialConnectionWindowSize: 1048576
initialStreamWindowSize: 65536
maxConcurrentStreams: 100
httpFilters:
- name: envoy.filters.http.router
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
suppressEnvoyHeaders: true
mergeSlashes: true
normalizePath: true
pathWithEscapedSlashesAction: UNESCAPE_AND_REDIRECT
rds:
configSource:
ads: {}
resourceApiVersion: V3
routeConfigName: listener-enable-req-resp-sizes-stats
serverHeaderTransformation: PASS_THROUGH
statPrefix: http-10080
useRemoteAddress: true
name: listener-enable-req-resp-sizes-stats
name: listener-enable-req-resp-sizes-stats
perConnectionBufferLimitBytes: 32768
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- ignorePortInHostMatching: true
name: listener-enable-req-resp-sizes-stats
virtualHosts:
- domains:
- '*'
name: listener-enable-req-resp-sizes-stats/*
routes:
- match:
prefix: /
name: first-route
route:
cluster: first-route-dest
upgradeConfigs:
- upgradeType: websocket
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- address:
socketAddress:
address: 0.0.0.0
portValue: 10080
name: tcp-route-enable-req-resp-sizes-stats
perConnectionBufferLimitBytes: 32768
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- circuitBreakers:
thresholds:
- maxRetries: 1024
commonLbConfig:
localityWeightedLbConfig: {}
connectTimeout: 10s
dnsLookupFamily: V4_ONLY
edsClusterConfig:
edsConfig:
ads: {}
resourceApiVersion: V3
serviceName: udp-route-dest
lbPolicy: LEAST_REQUEST
name: udp-route-dest
outlierDetection: {}
perConnectionBufferLimitBytes: 32768
trackClusterStats:
requestResponseSizes: true
type: EDS
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- clusterName: udp-route-dest
endpoints:
- lbEndpoints:
- endpoint:
address:
socketAddress:
address: 1.2.3.4
portValue: 50000
loadBalancingWeight: 1
- endpoint:
address:
socketAddress:
address: 5.6.7.8
portValue: 50001
loadBalancingWeight: 1
loadBalancingWeight: 1
locality:
region: udp-route-dest/backend/0
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- address:
socketAddress:
address: 0.0.0.0
portValue: 10080
protocol: UDP
listenerFilters:
- name: envoy.filters.udp_listener.udp_proxy
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig
matcher:
onNoMatch:
action:
name: route
typedConfig:
'@type': type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.Route
cluster: udp-route-dest
statPrefix: service
name: udp-route-enable-req-resp-sizes-stats
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]

0 comments on commit d83f768

Please sign in to comment.