feat: 接入 frontend 子模块并集成 envoy

This commit is contained in:
zetaloop
2026-05-03 08:51:58 +08:00
parent 9a32850030
commit b08a3a51e0
5 changed files with 47 additions and 4 deletions
+21 -4
View File
@@ -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: