-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathilla-unit-ingress.yaml
199 lines (196 loc) · 6.85 KB
/
illa-unit-ingress.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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
overload_manager:
refresh_interval: 0.25s
resource_monitors:
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.config.resource_monitor.fixed_heap.v2alpha.FixedHeapConfig
# TODO: Tune for your system.
max_heap_size_bytes: 1073741824 # 1 GiB
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
static_resources:
listeners:
- name: illa_unit_listener
address:
socket_address:
address: 0.0.0.0
port_value: 2022
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
codec_type: AUTO
stat_prefix: illa_unit_self_host
upgrade_configs:
- upgrade_type: websocket
route_config:
name: local_route
virtual_hosts:
- name: illa_builder
domains: ["*"]
routes:
- match:
prefix: "/builder/"
route:
prefix_rewrite: "/"
cluster: illa_builder_backend_unit
- match:
prefix: "/action/"
route:
prefix_rewrite: "/"
cluster: illa_builder_backend_unit
- match:
prefix: "/resource/"
route:
prefix_rewrite: "/"
cluster: illa_resource_backend_unit
- match:
prefix: "/builder-ws/"
route:
prefix_rewrite: "/"
cluster: illa_builder_backend_ws_unit
timeout: 0s
- match:
prefix: "/supervisor/"
route:
prefix_rewrite: "/"
cluster: illa_supervisor_backend_unit
- match:
prefix: "/object-storage/"
route:
prefix_rewrite: "/"
host_rewrite_literal: "127.0.0.1:9000"
cluster: illa_object_storage_unit
- match:
prefix: "/build"
route:
prefix_rewrite: "/"
cluster: illa_builder_frontend_unit
- match:
prefix: "/cloud"
route:
prefix_rewrite: "/"
cluster: illa_cloud_frontend_unit
- match:
path: "/"
redirect:
path_redirect: "/cloud"
http_filters:
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
- name: illa_cloud_frontend_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_cloud_frontend_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 7999
- name: illa_builder_frontend_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_builder_frontend_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8000
- name: illa_builder_backend_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_builder_backend_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8001
- name: illa_resource_backend_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_resource_backend_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8001
- name: illa_builder_backend_ws_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_builder_backend_ws_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8002
- name: illa_supervisor_backend_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_supervisor_backend_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 8003
- name: illa_object_storage_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_object_storage_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 9000
- name: illa_supervisor_backend_internal_unit
type: STRICT_DNS
lb_policy: ROUND_ROBIN
connect_timeout: 10s
load_assignment:
cluster_name: illa_supervisor_backend_internal_unit
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 9001