Skip to content

Instantly share code, notes, and snippets.

@mosceo
Created September 5, 2022 02:32
Show Gist options
  • Save mosceo/b91b83a217f5397c81795bb20735c344 to your computer and use it in GitHub Desktop.
Save mosceo/b91b83a217f5397c81795bb20735c344 to your computer and use it in GitHub Desktop.
static_resources:
listeners:
- name: listener_0
address:
socket_address: {address: 127.0.0.1, port_value: 10201}
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
stat_prefix: ingress_http
codec_type: AUTO
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match: {prefix: "/"}
route: {cluster: in_stock_service}
http_filters:
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
- name: in_stock_service
connect_timeout: 5s
type: STATIC
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: in_stock_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: in-stock-master.hc-k8s.dns-shop.ru
port_value: 30008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment