-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathorion-runtime.yaml
More file actions
125 lines (117 loc) · 4.35 KB
/
orion-runtime.yaml
File metadata and controls
125 lines (117 loc) · 4.35 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# /proxy/ ---> (cluster1) 192.168.2.10:80
# |
# http request ---> 192.168.1.1:8080 -|
# |
# (default) ---> (cluster2) 127.0.0.1:80
#
# /proxy/ ---> (cluster3) 192.168.2.10:81 (h2)
# |
# http request ---> 192.168.1.1:8081 -|
# |
# / 404
#
runtime:
num_cpus: 2
num_runtimes: 2
event_interval: 31 # estimated optimal value
global_queue_interval: null # default
max_io_events_per_tick: null # default
logging:
log_level: "debug"
# log_directory: "."
# log_file: "orion.log"
envoy_bootstrap:
static_resources:
listeners:
- name: listener_http
address:
socket_address: { address: 0.0.0.0, port_value: 8000 }
filterChains:
- name: filter_chain_http
filter_chain_match:
destination_port: 8000
filters:
- name: http_gateway
typedConfig:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
statPrefix: ingress_http
codecType: HTTP1
httpFilters:
- name: envoy.filters.http.router
typedConfig:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
start_child_span: false
routeConfig:
name: basic_http_route
virtual_hosts:
- name: backend
domains: ["*"]
routes:
- match:
prefix: "/direct-response"
headers:
- name: ":method"
exactMatch: "GET"
direct_response:
status: 200
body:
inline_string: "meow! 🐱"
- match:
prefix: "/"
headers:
- name: ":method"
exactMatch: "GET"
route:
cluster: cluster_http
- match:
prefix: "/"
route:
cluster: cluster_http
- name: listener_tcp
address:
socket_address: { address: 0.0.0.0, port_value: 8001 }
filterChains:
- name: filter_chain_tcp
filter_chain_match:
destination_port: 8001
filters:
- name: tcp_proxy_filter
typedConfig:
"@type": type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
statPrefix: ingress_tcp
cluster: cluster_tcp
clusters:
- name: cluster_http
connect_timeout: 0.25s
type: STATIC
lb_policy: ROUND_ROBIN
load_assignment:
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 10.206.137.58
port_value: 4001
- endpoint:
address:
socket_address:
address: 10.206.137.58
port_value: 4002
- name: cluster_tcp
connect_timeout: 0.25s
type: STATIC
lb_policy: ROUND_ROBIN
load_assignment:
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 10.206.137.58
port_value: 4003
- endpoint:
address:
socket_address:
address: 10.206.137.58
port_value: 4004