Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created December 15, 2019 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msfidelis/ba249ad892952c513cdfb7425ead2782 to your computer and use it in GitHub Desktop.
Save msfidelis/ba249ad892952c513cdfb7425ead2782 to your computer and use it in GitHub Desktop.
static_resources:
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
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
codec_type: AUTO
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match:
prefix: "/"
route:
cluster: cluster_example
http_filters:
- name: envoy.router
clusters:
- name: "cluster_example"
connect_timeout: "1s"
type: "strict_dns"
lb_policy: "ROUND_ROBIN"
hosts:
- socket_address:
address: "node_1"
port_value: 8000
- socket_address:
address: "node_2"
port_value: 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment