Skip to content

Instantly share code, notes, and snippets.

@DavadDi
Created February 14, 2019 10:08
Show Gist options
  • Save DavadDi/8be9826009ded90dfe70cdd2a884d7c0 to your computer and use it in GitHub Desktop.
Save DavadDi/8be9826009ded90dfe70cdd2a884d7c0 to your computer and use it in GitHub Desktop.
"listeners": {
"@type": "type.googleapis.com/envoy.admin.v2alpha.ListenersConfigDump",
"version_info": "2019-02-13T12:52:07Z/11",
"static_listeners": [
{
"listener": {
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 15090
}
},
"filter_chains": [
{
"filters": [
{
"name": "envoy.http_connection_manager",
"config": {
"http_filters": {
"name": "envoy.router"
},
"stat_prefix": "stats",
"route_config": {
"virtual_hosts": [
{
"routes": [
{
"match": {
"prefix": "/stats/prometheus"
},
"route": {
"cluster": "prometheus_stats"
}
}
],
"domains": [
"*"
],
"name": "backend"
}
]
},
"codec_type": "AUTO"
}
}
]
}
]
},
"last_updated": "2019-02-13T09:28:36.769Z"
}
],
"dynamic_active_listeners": [
{
"version_info": "2019-02-13T09:28:16Z/7",
"listener": {
"name": "10.128.5.4_5000",
"address": {
"socket_address": {
"address": "10.128.5.4",
"port_value": 5000
}
},
"filter_chains": [
{
"filter_chain_match": {
"transport_protocol": "raw_buffer"
},
"filters": [
{
"name": "envoy.http_connection_manager",
"config": {
"stream_idle_timeout": "0.000s",
"generate_request_id": true,
"upgrade_configs": [
{
"upgrade_type": "websocket"
}
],
"access_log": [
],
"http_filters": [
{
"name": "istio_authn",
"config": {
"policy": {
"peers": [
{
"mtls": {
"mode": "PERMISSIVE"
}
}
]
}
}
},
{
"name": "mixer",
"config": {
"transport": {
"check_cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local",
"network_fail_policy": {
"policy": "FAIL_CLOSE"
},
"report_cluster": "outbound|9091||istio-telemetry.istio-system.svc.cluster.local",
"attributes_for_mixer_proxy": {
"attributes": {
"source.uid": {
"string_value": "kubernetes://helloworld-v1-8f8dd85-cfz42.default"
}
}
}
},
"service_configs": {
"default": {}
},
"default_destination_service": "default",
}
},
{
"name": "envoy.cors"
},
{
"name": "envoy.fault"
},
{
"name": "envoy.router"
}
],
"tracing": {
"overall_sampling": {
"value": 100
},
"random_sampling": {
"value": 100
},
"client_sampling": {
"value": 100
}
},
"route_config": {
"name": "inbound|5000||helloworld.default.svc.cluster.local",
"validate_clusters": false,
"virtual_hosts": [
{
"routes": [
{
"decorator": {
"operation": "helloworld.default.svc.cluster.local:5000/*"
},
"route": {
"max_grpc_timeout": "0.000s",
"cluster": "inbound|5000||helloworld.default.svc.cluster.local",
"timeout": "0.000s"
},
"per_filter_config": {
"mixer": {
"mixer_attributes": {
"attributes": {
"destination.service.namespace": {
"string_value": "default"
},
"destination.service.name": {
"string_value": "helloworld"
},
"destination.service": {
"string_value": "helloworld.default.svc.cluster.local"
},
"destination.service.uid": {
"string_value": "istio://default/services/helloworld"
},
"destination.service.host": {
"string_value": "helloworld.default.svc.cluster.local"
}
}
}
}
},
"match": {
"prefix": "/"
}
}
],
"domains": [
"*"
],
"name": "inbound|http|5000"
}
]
},
"use_remote_address": false,
"stat_prefix": "10.128.5.4_5000"
}
}
]
},
{
"filter_chain_match": {
"transport_protocol": "tls"
},
"tls_context": {
"common_tls_context": {
"tls_certificates": [
{
"certificate_chain": {
"filename": "/etc/certs/cert-chain.pem"
},
"private_key": {
"filename": "/etc/certs/key.pem"
}
}
],
"validation_context": {
"trusted_ca": {
"filename": "/etc/certs/root-cert.pem"
}
},
"alpn_protocols": [
"h2",
"http/1.1"
]
},
"require_client_certificate": true
},
"filters": [
{
"name": "envoy.http_connection_manager",
"config": {
"access_log": [
{
"name": "envoy.file_access_log",
"config": {
"path": "/dev/stdout",
"format": "[%START_TIME%] \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%%PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS%\n"
}
}
],
"http_filters": [
{
"name": "istio_authn",
"config": {
"policy": {
"peers": [
{
"mtls": {
"mode": "PERMISSIVE"
}
}
]
}
}
},
{
"name": "mixer",
"config": {
"transport": {
"network_fail_policy": {
"policy": "FAIL_CLOSE"
},
"report_cluster": "outbound|9091||istio-telemetry.istio-system.svc.cluster.local",
"attributes_for_mixer_proxy": {
"attributes": {
"source.uid": {
"string_value": "kubernetes://helloworld-v1-8f8dd85-cfz42.default"
}
}
},
"check_cluster": "outbound|9091||istio-policy.istio-system.svc.cluster.local"
},
"service_configs": {
"default": {}
},
"default_destination_service": "default",
"mixer_attributes": {
"attributes": {
"destination.port": {
"int64_value": "5000"
},
"context.reporter.uid": {
"string_value": "kubernetes://helloworld-v1-8f8dd85-cfz42.default"
},
"destination.namespace": {
"string_value": "default"
},
"destination.ip": {
"bytes_value": "AAAAAAAAAAAAAP//CoAFBA=="
},
"destination.uid": {
"string_value": "kubernetes://helloworld-v1-8f8dd85-cfz42.default"
},
"context.reporter.kind": {
"string_value": "inbound"
}
}
}
}
},
{
"name": "envoy.cors"
},
{
"name": "envoy.fault"
},
{
"name": "envoy.router"
}
],
"tracing": {
"overall_sampling": {
"value": 100
},
"random_sampling": {
"value": 100
},
"client_sampling": {
"value": 100
}
},
"route_config": {
"name": "inbound|5000||helloworld.default.svc.cluster.local",
"validate_clusters": false,
"virtual_hosts": [
{
"routes": [
{
"decorator": {
"operation": "helloworld.default.svc.cluster.local:5000/*"
},
"route": {
"max_grpc_timeout": "0.000s",
"cluster": "inbound|5000||helloworld.default.svc.cluster.local",
"timeout": "0.000s"
},
"per_filter_config": {
"mixer": {
"mixer_attributes": {
"attributes": {
"destination.service.name": {
"string_value": "helloworld"
},
"destination.service.namespace": {
"string_value": "default"
},
"destination.service": {
"string_value": "helloworld.default.svc.cluster.local"
},
"destination.service.host": {
"string_value": "helloworld.default.svc.cluster.local"
},
"destination.service.uid": {
"string_value": "istio://default/services/helloworld"
}
}
}
}
},
"match": {
"prefix": "/"
}
}
],
"domains": [
"*"
],
"name": "inbound|http|5000"
}
]
},
"use_remote_address": false,
"stat_prefix": "10.128.5.4_5000",
"stream_idle_timeout": "0.000s",
"generate_request_id": true,
"upgrade_configs": [
{
"upgrade_type": "websocket"
}
]
}
}
]
}
],
"deprecated_v1": {
"bind_to_port": false
},
"listener_filters": [
{
"name": "envoy.listener.tls_inspector",
"config": {}
}
]
},
"last_updated": "2019-02-13T09:28:38.027Z"
},
{
"version_info": "2019-02-13T09:28:16Z/7",
"listener": {
"name": "virtual",
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 15001
}
},
"filter_chains": [
{
"filters": [
{
"name": "envoy.tcp_proxy",
"config": {
"stat_prefix": "BlackHoleCluster",
"cluster": "BlackHoleCluster"
}
}
]
}
],
"use_original_dst": true
},
"last_updated": "2019-02-13T09:28:38.080Z"
},
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment