Skip to content

Instantly share code, notes, and snippets.

@mitchfriedman
Created October 10, 2018 22:26
Show Gist options
  • Save mitchfriedman/2cb4342f66ec1552527a65e79e40dd55 to your computer and use it in GitHub Desktop.
Save mitchfriedman/2cb4342f66ec1552527a65e79e40dd55 to your computer and use it in GitHub Desktop.
static_resources:
clusters:
- name: local_admin_cluster
connect_timeout: 30s
type: STATIC
lb_policy: ROUND_ROBIN
hosts: [{ socket_address: { address: 0.0.0.0, port_value: 5000 }}]
listeners:
- name: local_admin_listener
address:
socket_address: { address: 0.0.0.0, port_value: 5001 }
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
codec_type: AUTO
route_config:
name: local_admin_route
virtual_hosts:
- name: local_service
domains: ["*"]
response_headers_to_add:
- header:
key: "Access-Control-Allow-Origin"
value: "*"
routes:
- match: { path: "/clusters" }
route: { cluster: local_admin }
- match: { path: "/config_dump" }
route: { cluster: local_admin }
http_filters:
- name: envoy.router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment