This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathenvoy2.yaml
83 lines (80 loc) · 2.11 KB
/
envoy2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
node:
id: consul1
cluster: envoy
locality:
zone: "us-west-1a"
cluster_manager:
local_cluster_name: envoy
admin:
access_log_path: "/dev/null"
address:
socket_address: { address: 0.0.0.0, port_value: 8001 }
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
codec_type: AUTO
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match: { prefix: "/" }
route: { cluster: server }
http_filters:
- name: envoy.router
clusters:
- name: server
connect_timeout: 0.25s
lb_policy: ROUND_ROBIN
http_protocol_options: {}
common_lb_config:
zone_aware_lb_config: { routing_enabled: { value: 100.0 }, min_cluster_size: 1}
type: EDS
eds_cluster_config:
eds_config:
api_config_source:
api_type: GRPC
grpc_services:
envoy_grpc:
cluster_name: xds_cluster
- name: xds_cluster
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
common_lb_config:
zone_aware_lb_config: { routing_enabled: { value: 100.0 }, min_cluster_size: 1}
http2_protocol_options: {}
hosts: [{ socket_address: { address: xds, port_value: 9001 }}]
- name: envoy
connect_timeout: 1s
type: STATIC
lb_policy: ROUND_ROBIN
http2_protocol_options: {}
load_assignment:
cluster_name: envoy
endpoints:
- locality:
zone: "us-west-1a"
lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 80
- locality:
zone: "us-west-1b"
lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 80