-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvoy.yaml
52 lines (52 loc) · 1.29 KB
/
envoy.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
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
http_filters:
- name: envoy.router
config: {}
route_config:
virtual_hosts:
- name: virtual_hosts
domains: "*"
routes:
- name: "c-short"
match:
prefix: "/cu/"
route:
prefix_rewrite: "/"
cluster: customerapi
- name: "account"
match:
prefix: "/ac/"
route:
prefix_rewrite: "/"
cluster: accountapi
clusters:
- name: customerapi
type: STRICT_DNS
connect_timeout: 1s
hosts:
- socket_address:
address: Customer.Api
port_value: 80
- name: accountapi
type: STRICT_DNS
connect_timeout: 1s
hosts:
- socket_address:
address: Account.Api
port_value: 80