You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/10/23 02:18:47 UTC

[GitHub] [skywalking] hanahmily commented on issue #3685: How to config envoy to upload the trace data

hanahmily commented on issue #3685: How to config envoy to upload the trace data
URL: https://github.com/apache/skywalking/issues/3685#issuecomment-545233581
 
 
   @UchihaWen if your listener config comes from static config file instead of LDS, I think I can help. pls follow this example:
   ```
   admin:
     access_log_path: /tmp/admin_access.log
     address:
       socket_address:
         protocol: TCP
         address: 127.0.0.1
         port_value: 9901
   
   static_resources:
     listeners:
     - name: listener_0
       address:
         socket_address:
           protocol: TCP
           address: 0.0.0.0
           port_value: 10000
       filter_chains:
       - filters:
         - name: envoy.http_connection_manager
           typed_config:
             "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
             stat_prefix: ingress_http
             access_log:
               - name: envoy.http_grpc_access_log
                 config:
                   common_config:
                     log_name: skywalking
                     grpc_service:
                       envoy_grpc:
                         cluster_name: service_skywalking
             route_config:
               name: local_route
               virtual_hosts:
               - name: local_service
                 domains: ["*"]
                 routes:
                 - match:
                     prefix: "/"
                   route:
                     host_rewrite: www.google.com
                     cluster: service_google
             http_filters:
             - name: envoy.router
     clusters:
     - name: service_google
       connect_timeout: 5s
       type: LOGICAL_DNS
       # Comment out the following line to test on v6 networks
       dns_lookup_family: V4_ONLY
       lb_policy: ROUND_ROBIN
       load_assignment:
         cluster_name: service_google
         endpoints:
         - lb_endpoints:
           - endpoint:
               address:
                 socket_address:
                   address: www.google.com
                   port_value: 443
       tls_context:
         sni: www.google.com
     - name: service_log
       connect_timeout: 5s
       type: STATIC
       http2_protocol_options: {}
       # Comment out the following line to test on v6 networks
       dns_lookup_family: V4_ONLY
       lb_policy: ROUND_ROBIN
       load_assignment:
         cluster_name: service_skywalking
         endpoints:
         - lb_endpoints:
           - endpoint:
               address:
                 socket_address:
                   address: 127.0.0.1
                   port_value: 11800
   ```
   Even you pick up LDS, you can access envoy api to add above ALS in listener.
   Good luck

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services