Created
March 21, 2019 21:15
-
-
Save christian-posta/c87e8b5451e66375a5117480477064f7 to your computer and use it in GitHub Desktop.
Envoy Sidecar Config from AWS AppMesh
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
{ | |
"configs": [ | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v2alpha.BootstrapConfigDump", | |
"bootstrap": { | |
"node": { | |
"id": "mesh/ceposta-mesh/virtualNode/colorgateway-vn", | |
"cluster": "mesh/ceposta-mesh/virtualNode/colorgateway-vn", | |
"build_version": "c74766d7261bd56f8ffa1a06ebb9325f66fe6263/1.8.0/Clean/DEBUG" | |
}, | |
"dynamic_resources": { | |
"lds_config": { | |
"ads": {} | |
}, | |
"cds_config": { | |
"ads": {} | |
}, | |
"ads_config": { | |
"api_type": "GRPC", | |
"grpc_services": [ | |
{ | |
"google_grpc": { | |
"target_uri": "appmesh-envoy-management.us-west-2.amazonaws.com:443", | |
"channel_credentials": { | |
"ssl_credentials": { | |
"root_certs": { | |
"filename": "/etc/pki/tls/cert.pem" | |
} | |
} | |
}, | |
"call_credentials": [ | |
{ | |
"from_plugin": { | |
"name": "envoy.grpc_credentials.aws_iam", | |
"config": { | |
"service_name": "appmesh", | |
"region": "us-west-2" | |
} | |
} | |
} | |
], | |
"stat_prefix": "ads", | |
"credentials_factory_name": "envoy.grpc_credentials.aws_iam" | |
} | |
} | |
] | |
} | |
}, | |
"admin": { | |
"access_log_path": "/tmp/envoy_admin_access.log", | |
"address": { | |
"socket_address": { | |
"address": "0.0.0.0", | |
"port_value": 9901 | |
} | |
} | |
} | |
}, | |
"last_updated": "2019-03-21T21:06:01.557Z" | |
}, | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v2alpha.ClustersConfigDump", | |
"version_info": "205797310", | |
"dynamic_active_clusters": [ | |
{ | |
"version_info": "205797310", | |
"cluster": { | |
"name": "cds_egress_ceposta-mesh_colorgateway-vn_amazonaws", | |
"type": "ORIGINAL_DST", | |
"connect_timeout": "1s", | |
"lb_policy": "ORIGINAL_DST_LB" | |
}, | |
"last_updated": "2019-03-21T21:06:01.808Z" | |
}, | |
{ | |
"version_info": "205797310", | |
"cluster": { | |
"name": "cds_egress_ceposta-mesh_colorgateway-vn_colorteller-white-vn_http_9080", | |
"type": "LOGICAL_DNS", | |
"connect_timeout": "1s", | |
"health_checks": [ | |
{ | |
"timeout": "2s", | |
"interval": "5s", | |
"unhealthy_threshold": 2, | |
"healthy_threshold": 2, | |
"alt_port": 9080, | |
"http_health_check": { | |
"path": "/ping" | |
} | |
} | |
], | |
"http2_protocol_options": {}, | |
"load_assignment": { | |
"cluster_name": "cds_egress_ceposta-mesh_colorgateway-vn_colorteller-white-vn_http_9080", | |
"endpoints": [ | |
{ | |
"lb_endpoints": [ | |
{ | |
"endpoint": { | |
"address": { | |
"socket_address": { | |
"address": "colorteller.default.svc.cluster.local", | |
"port_value": 9080 | |
} | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
}, | |
"last_updated": "2019-03-21T21:06:01.811Z" | |
}, | |
{ | |
"version_info": "205797310", | |
"cluster": { | |
"name": "cds_egress_ceposta-mesh_colorgateway-vn_tcpecho-vn_tcp_2701", | |
"type": "LOGICAL_DNS", | |
"connect_timeout": "1s", | |
"health_checks": [ | |
{ | |
"timeout": "2s", | |
"interval": "5s", | |
"unhealthy_threshold": 2, | |
"healthy_threshold": 2, | |
"alt_port": 2701, | |
"tcp_health_check": {} | |
} | |
], | |
"http2_protocol_options": {}, | |
"load_assignment": { | |
"cluster_name": "cds_egress_ceposta-mesh_colorgateway-vn_tcpecho-vn_tcp_2701", | |
"endpoints": [ | |
{ | |
"lb_endpoints": [ | |
{ | |
"endpoint": { | |
"address": { | |
"socket_address": { | |
"address": "tcpecho.default.svc.cluster.local", | |
"port_value": 2701 | |
} | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
}, | |
"last_updated": "2019-03-21T21:06:01.814Z" | |
}, | |
{ | |
"version_info": "205797310", | |
"cluster": { | |
"name": "cds_ingress_ceposta-mesh_colorgateway-vn_colorgateway-vn_http_9080", | |
"connect_timeout": "0.250s", | |
"load_assignment": { | |
"cluster_name": "cds_ingress_ceposta-mesh_colorgateway-vn_colorgateway-vn_http_9080", | |
"endpoints": [ | |
{ | |
"lb_endpoints": [ | |
{ | |
"endpoint": { | |
"address": { | |
"socket_address": { | |
"address": "127.0.0.1", | |
"port_value": 9080 | |
} | |
} | |
} | |
} | |
] | |
} | |
] | |
} | |
}, | |
"last_updated": "2019-03-21T21:06:01.803Z" | |
} | |
] | |
}, | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v2alpha.ListenersConfigDump", | |
"version_info": "205797310", | |
"dynamic_active_listeners": [ | |
{ | |
"version_info": "205797310", | |
"listener": { | |
"name": "lds_ingress_ceposta-mesh_colorgateway-vn_0.0.0.0_15000", | |
"address": { | |
"socket_address": { | |
"address": "0.0.0.0", | |
"port_value": 15000 | |
} | |
}, | |
"filter_chains": [ | |
{ | |
"filter_chain_match": { | |
"destination_port": 9080 | |
}, | |
"filters": [ | |
{ | |
"name": "envoy.http_connection_manager", | |
"config": { | |
"tracing": {}, | |
"http_filters": [ | |
{ | |
"name": "envoy.router" | |
} | |
], | |
"rds": { | |
"route_config_name": "rds_ingress_ceposta-mesh_colorgateway-vn_http_9080", | |
"config_source": { | |
"ads": {} | |
} | |
}, | |
"stat_prefix": "ingress" | |
} | |
} | |
] | |
} | |
], | |
"listener_filters": [ | |
{ | |
"name": "envoy.listener.original_dst" | |
} | |
] | |
}, | |
"last_updated": "2019-03-21T21:06:01.831Z" | |
}, | |
{ | |
"version_info": "205797310", | |
"listener": { | |
"name": "lds_egress_ceposta-mesh_colorgateway-vn_0.0.0.0_15001", | |
"address": { | |
"socket_address": { | |
"address": "0.0.0.0", | |
"port_value": 15001 | |
} | |
}, | |
"filter_chains": [ | |
{ | |
"filter_chain_match": { | |
"destination_port": 9080 | |
}, | |
"filters": [ | |
{ | |
"name": "envoy.http_connection_manager", | |
"config": { | |
"tracing": { | |
"operation_name": "EGRESS" | |
}, | |
"http_filters": [ | |
{ | |
"name": "envoy.router" | |
} | |
], | |
"rds": { | |
"config_source": { | |
"ads": {} | |
}, | |
"route_config_name": "rds_egress_ceposta-mesh_colorgateway-vn_http_9080" | |
}, | |
"stat_prefix": "egress" | |
} | |
} | |
] | |
}, | |
{ | |
"filter_chain_match": { | |
"destination_port": 2701 | |
}, | |
"filters": [ | |
{ | |
"name": "envoy.tcp_proxy", | |
"config": { | |
"stat_prefix": "egress", | |
"cluster": "cds_egress_ceposta-mesh_colorgateway-vn_tcpecho-vn_tcp_2701" | |
} | |
} | |
] | |
}, | |
{ | |
"filter_chain_match": { | |
"destination_port": 443, | |
"server_names": [ | |
"*.amazonaws.com" | |
] | |
}, | |
"filters": [ | |
{ | |
"name": "envoy.tcp_proxy", | |
"config": { | |
"stat_prefix": "egress", | |
"cluster": "cds_egress_ceposta-mesh_colorgateway-vn_amazonaws" | |
} | |
} | |
] | |
} | |
], | |
"listener_filters": [ | |
{ | |
"name": "envoy.listener.original_dst" | |
}, | |
{ | |
"name": "envoy.listener.tls_inspector" | |
} | |
] | |
}, | |
"last_updated": "2019-03-21T21:06:01.835Z" | |
} | |
] | |
}, | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v2alpha.RoutesConfigDump", | |
"dynamic_route_configs": [ | |
{ | |
"version_info": "205797310", | |
"route_config": { | |
"name": "rds_egress_ceposta-mesh_colorgateway-vn_http_9080", | |
"virtual_hosts": [ | |
{ | |
"name": "rds_egress_ceposta-mesh_colorgateway-vn_http_9080_colorteller.default.svc.cluster.local", | |
"domains": [ | |
"colorteller.default.svc.cluster.local", | |
"colorteller.default.svc.cluster.local:9080" | |
], | |
"routes": [ | |
{ | |
"match": { | |
"prefix": "/" | |
}, | |
"route": { | |
"weighted_clusters": { | |
"clusters": [ | |
{ | |
"name": "cds_egress_ceposta-mesh_colorgateway-vn_colorteller-white-vn_http_9080", | |
"weight": 1 | |
} | |
], | |
"total_weight": 1 | |
} | |
} | |
} | |
] | |
} | |
] | |
}, | |
"last_updated": "2019-03-21T21:06:01.838Z" | |
}, | |
{ | |
"version_info": "205797310", | |
"route_config": { | |
"name": "rds_ingress_ceposta-mesh_colorgateway-vn_http_9080", | |
"virtual_hosts": [ | |
{ | |
"name": "rds_ingress_ceposta-mesh_colorgateway-vn_http_9080_colorgateway.default.svc.cluster.local", | |
"domains": [ | |
"*" | |
], | |
"routes": [ | |
{ | |
"match": { | |
"prefix": "/" | |
}, | |
"route": { | |
"cluster": "cds_ingress_ceposta-mesh_colorgateway-vn_colorgateway-vn_http_9080" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"last_updated": "2019-03-21T21:06:01.840Z" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment