forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
google_com_proxy_port_0.yaml
46 lines (45 loc) · 1.37 KB
/
google_com_proxy_port_0.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
admin:
access_log:
- name: envoy.access_loggers.file
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: "{{ null_device_path }}"
address:
socket_address:
address: "{{ ip_any_address }}"
port_value: 0
static_resources:
listeners:
- name: listener_0
address:
socket_address:
address: "{{ ip_any_address }}"
port_value: 0
filter_chains:
- filters:
- name: http
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: {host_rewrite_literal: www.google.com, cluster: service_google}
clusters:
- name: service_google
connect_timeout: 0.25s
type: LOGICAL_DNS
# Comment out the following line to test on v6 networks
dns_lookup_family: "{{ dns_lookup_family }}"
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: service_google
endpoints:
- lb_endpoints:
- endpoint:
address: {socket_address: {address: google.com, port_value: 443}}