Skip to content

Instantly share code, notes, and snippets.

@jun06t
Created July 2, 2018 01:21
Show Gist options
  • Save jun06t/18f2c7738c98990126401f5f7d5d29c1 to your computer and use it in GitHub Desktop.
Save jun06t/18f2c7738c98990126401f5f7d5d29c1 to your computer and use it in GitHub Desktop.

Revisions

  1. jun06t created this gist Jul 2, 2018.
    52 changes: 52 additions & 0 deletions envoy-sidecar
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    static_resources:
    listeners:
    - address:
    socket_address:
    address: 0.0.0.0
    port_value: 10000
    filter_chains:
    - filters:
    - name: envoy.http_connection_manager
    config:
    codec_type: auto
    stat_prefix: ingress_http
    route_config:
    name: local_route
    virtual_hosts:
    - name: service
    domains:
    - "*"
    routes:
    - match:
    prefix: "/"
    route:
    cluster: local_service
    access_log:
    - name: envoy.file_access_log
    config:
    path: "/dev/stdout"
    http_filters:
    - name: envoy.router
    config: {}
    clusters:
    - name: local_service
    http2_protocol_options: {}
    connect_timeout: 0.25s
    type: static
    lb_policy: round_robin
    health_checks:
    - timeout: 5s
    interval: 10s
    unhealthy_threshold: 2
    healthy_threshold: 2
    tcp_health_check: {}
    hosts:
    - socket_address:
    address: 127.0.0.1
    port_value: 8080
    admin:
    access_log_path: /dev/null
    address:
    socket_address:
    address: 0.0.0.0
    port_value: 10001