Skip to content

Instantly share code, notes, and snippets.

@electric380v
Last active November 13, 2019 13:12
Show Gist options
  • Save electric380v/3bb9d23f50dd72d0e1eb0db0193673f2 to your computer and use it in GitHub Desktop.
Save electric380v/3bb9d23f50dd72d0e1eb0db0193673f2 to your computer and use it in GitHub Desktop.

Revisions

  1. electric380v revised this gist Nov 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion envoy.json
    Original file line number Diff line number Diff line change
    @@ -52,7 +52,7 @@
    "connect_timeout_ms": 250,
    "type": "sds",
    "lb_type": "round_robin",
    "service_name": "nginx.service.consul"
    "service_name": "tp-web.service.consul"
    }
    ],
    "sds": {
  2. electric380v created this gist Nov 13, 2019.
    71 changes: 71 additions & 0 deletions envoy.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,71 @@
    {
    "listeners": [
    {
    "address": "tcp://0.0.0.0:1010",
    "filters": [
    {
    "type": "read",
    "name": "http_connection_manager",
    "config": {
    "access_log": [
    {
    "path": "/dev/stdout"
    }
    ],
    "codec_type": "auto",
    "stat_prefix": "ingress_http",
    "route_config": {
    "virtual_hosts": [
    {
    "name": "backend",
    "domains": ["*"],
    "routes": [
    {
    "timeout_ms": 0,
    "prefix": "/",
    "cluster": "nginx.service.consul"
    }
    ]
    }
    ]
    },
    "filters": [
    {
    "type": "decoder",
    "name": "router",
    "config": {}
    }
    ]
    }
    }
    ]
    }
    ],
    "admin": {
    "access_log_path": "/dev/stdout",
    "address": "tcp://0.0.0.0:8001"
    },
    "cluster_manager": {
    "clusters": [
    {
    "name": "nginx.service.consul",
    "connect_timeout_ms": 250,
    "type": "sds",
    "lb_type": "round_robin",
    "service_name": "nginx.service.consul"
    }
    ],
    "sds": {
    "cluster": {
    "name": "envoy_consul_sds",
    "type": "logical_dns",
    "connect_timeout_ms": 250,
    "lb_type": "round_robin",
    "hosts": [
    {"url": "tcp://envoy-consul-sds.service.consul:8080"}
    ]
    },
    "refresh_delay_ms": 1000
    }
    }
    }