1services { 2 name = "s1" 3 port = 8080 4 connect { 5 sidecar_service { 6 proxy { 7 upstreams = [ 8 { 9 destination_name = "s2" 10 local_bind_port = 5000 11 config { 12 protocol = "http" 13 } 14 } 15 ] 16 config { 17 protocol = "http" 18 envoy_tracing_json = <<EOF 19{ 20 "http": { 21 "name": "envoy.tracers.zipkin", 22 "typedConfig": { 23 "@type": "type.googleapis.com/envoy.config.trace.v3.ZipkinConfig", 24 "collector_cluster": "zipkin", 25 "collector_endpoint_version": "HTTP_JSON", 26 "collector_endpoint": "/api/v1/spans", 27 "shared_span_context": false 28 } 29 } 30} 31EOF 32 envoy_extra_static_clusters_json = <<EOF2 33{ 34 "name": "zipkin", 35 "type": "STRICT_DNS", 36 "connect_timeout": "5s", 37 "load_assignment": { 38 "cluster_name": "zipkin", 39 "endpoints": [ 40 { 41 "lb_endpoints": [ 42 { 43 "endpoint": { 44 "address": { 45 "socket_address": { 46 "address": "127.0.0.1", 47 "port_value": 9411 48 } 49 } 50 } 51 } 52 ] 53 } 54 ] 55 } 56} 57EOF2 58 } 59 } 60 } 61 } 62} 63