Created
February 13, 2019 02:56
-
-
Save DavadDi/25baee6ab00b377a4bb0516da7ba488f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"node": { | |
"id": "sidecar~10.128.45.2~sleep-7dc47f96b6-lnf9c.default~default.svc.cluster.local", | |
"cluster": "sleep", | |
"metadata": {"INTERCEPTION_MODE":"REDIRECT","ISTIO_PROXY_SHA":"istio-proxy:930841ca88b15365737acb7eddeea6733d4f98b9","ISTIO_PROXY_VERSION":"1.0.2","ISTIO_VERSION":"1.0.5","POD_NAME":"sleep-7dc47f96b6-lnf9c","app":"sleep","istio":"sidecar"} | |
}, | |
"stats_config": { | |
"use_all_default_tags": false, | |
"stats_tags": [{ | |
"tag_name": "cluster_name", | |
"regex": "^cluster\\.((.+?(\\..+?\\.svc\\.cluster\\.local)?)\\.)" | |
}, | |
{ | |
"tag_name": "tcp_prefix", | |
"regex": "^tcp\\.((.*?)\\.)\\w+?$" | |
}, | |
{ | |
"tag_name": "response_code", | |
"regex": "_rq(_(\\d{3}))$" | |
}, | |
{ | |
"tag_name": "response_code_class", | |
"regex": "_rq(_(\\dxx))$" | |
}, | |
{ | |
"tag_name": "http_conn_manager_listener_prefix", | |
"regex": "^listener(?=\\.).*?\\.http\\.(((?:[_.[:digit:]]*|[_\\[\\]aAbBcCdDeEfF[:digit:]]*))\\.)" | |
}, | |
{ | |
"tag_name": "http_conn_manager_prefix", | |
"regex": "^http\\.(((?:[_.[:digit:]]*|[_\\[\\]aAbBcCdDeEfF[:digit:]]*))\\.)" | |
}, | |
{ | |
"tag_name": "listener_address", | |
"regex": "^listener\\.(((?:[_.[:digit:]]*|[_\\[\\]aAbBcCdDeEfF[:digit:]]*))\\.)" | |
} | |
] | |
}, | |
"admin": { | |
"access_log_path": "/dev/null", | |
"address": { | |
"socket_address": { | |
"address": "127.0.0.1", | |
"port_value": 15000 | |
} | |
} | |
}, | |
"dynamic_resources": { | |
"lds_config": { | |
"ads": {} | |
}, | |
"cds_config": { | |
"ads": {} | |
}, | |
"ads_config": { | |
"api_type": "GRPC", | |
"refresh_delay": "1s", | |
"grpc_services": [ | |
{ | |
"envoy_grpc": { | |
"cluster_name": "xds-grpc" | |
} | |
} | |
] | |
} | |
}, | |
"static_resources": { | |
"clusters": [ | |
{ | |
"name": "prometheus_stats", | |
"type": "STATIC", | |
"connect_timeout": "0.250s", | |
"lb_policy": "ROUND_ROBIN", | |
"hosts": [{ | |
"socket_address": { | |
"protocol": "TCP", | |
"address": "127.0.0.1", | |
"port_value": 15000, | |
} | |
}], | |
}, | |
{ | |
"name": "xds-grpc", | |
"type": "STRICT_DNS", | |
"connect_timeout": "10s", | |
"lb_policy": "ROUND_ROBIN", | |
"hosts": [ | |
{ | |
"socket_address": {"address": "istio-pilot.istio-system", "port_value": 15010} | |
} | |
], | |
"circuit_breakers": { | |
"thresholds": [ | |
{ | |
"priority": "DEFAULT", | |
"max_connections": 100000, | |
"max_pending_requests": 100000, | |
"max_requests": 100000 | |
}, | |
{ | |
"priority": "HIGH", | |
"max_connections": 100000, | |
"max_pending_requests": 100000, | |
"max_requests": 100000 | |
}] | |
}, | |
"upstream_connection_options": { | |
"tcp_keepalive": { | |
"keepalive_time": 300 | |
} | |
}, | |
"http2_protocol_options": { } | |
} | |
, | |
{ | |
"name": "zipkin", | |
"type": "STRICT_DNS", | |
"connect_timeout": "1s", | |
"lb_policy": "ROUND_ROBIN", | |
"hosts": [ | |
{ | |
"socket_address": {"address": "zipkin.istio-system", "port_value": 9411} | |
} | |
] | |
} | |
], | |
"listeners":[ | |
{ | |
"address": { | |
"socket_address": { | |
"protocol": "TCP", | |
"address": "0.0.0.0", | |
"port_value": 15090, | |
} | |
}, | |
"filter_chains": [{ | |
"filters": [{ | |
"name": "envoy.http_connection_manager", | |
"config": { | |
"codec_type": "AUTO", | |
"stat_prefix": "stats", | |
"route_config": { | |
"virtual_hosts": [{ | |
"name": "backend", | |
"domains": [ | |
"*" | |
], | |
"routes": [{ | |
"match": { | |
"prefix": "/stats/prometheus" | |
}, | |
"route": { | |
"cluster": "prometheus_stats" | |
} | |
}] | |
}] | |
}, | |
"http_filters": { | |
"name": "envoy.router" | |
} | |
} | |
}] | |
}], | |
}, | |
], | |
}, | |
"tracing": { | |
"http": { | |
"name": "envoy.zipkin", | |
"config": { | |
"collector_cluster": "zipkin" | |
} | |
} | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment