feat: 接入 frontend 子模块并集成 envoy
This commit is contained in:
+21
-4
@@ -427,10 +427,13 @@ static_resources:
|
||||
|
||||
- match:
|
||||
prefix: /
|
||||
direct_response:
|
||||
status: 404
|
||||
body:
|
||||
inline_string: gateway route not found
|
||||
route:
|
||||
cluster: frontend_cluster
|
||||
timeout: 30s
|
||||
typed_per_filter_config:
|
||||
envoy.filters.http.ext_authz:
|
||||
"@type": type.googleapis.com/envoy.extensions.filters.http.ext_authz.v3.ExtAuthzPerRoute
|
||||
disabled: true
|
||||
|
||||
access_log:
|
||||
- name: envoy.access_loggers.stdout
|
||||
@@ -975,6 +978,20 @@ static_resources:
|
||||
address: ratelimit
|
||||
port_value: 8081
|
||||
|
||||
- name: frontend_cluster
|
||||
connect_timeout: 2s
|
||||
type: STRICT_DNS
|
||||
lb_policy: ROUND_ROBIN
|
||||
load_assignment:
|
||||
cluster_name: frontend_cluster
|
||||
endpoints:
|
||||
- lb_endpoints:
|
||||
- endpoint:
|
||||
address:
|
||||
socket_address:
|
||||
address: frontend
|
||||
port_value: 3000
|
||||
|
||||
admin:
|
||||
access_log_path: /tmp/admin.log
|
||||
address:
|
||||
|
||||
Reference in New Issue
Block a user