From c6d587f071b90ffd63040afa8a9f0a200f46bb65 Mon Sep 17 00:00:00 2001 From: chenbowen Date: Fri, 17 Oct 2025 18:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20databus=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployment.yaml | 18 +++++++++--------- zt-gateway/src/main/resources/application.yaml | 10 ++++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index d4a8c132..cef79ce3 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -351,14 +351,14 @@ spec: targetPort: 48084 nodePort: 30094 --- -# zt-module-template +# zt-module-databus apiVersion: apps/v1 kind: Deployment metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 - name: zt-module-template + name: zt-module-databus labels: - app: zt-module-template + app: zt-module-databus annotations: version: "VERSION_PLACEHOLDER" description: DESC_PLACEHOLDER @@ -367,15 +367,15 @@ spec: replicas: 1 selector: matchLabels: - app: zt-module-template + app: zt-module-databus template: metadata: labels: - app: zt-module-template + app: zt-module-databus spec: containers: - - name: zt-module-template - image: 172.16.46.66:10043/zt/zt-module-template:VERSION_PLACEHOLDER + - name: zt-module-databus + image: 172.16.46.66:10043/zt/zt-module-databus:VERSION_PLACEHOLDER imagePullPolicy: Always env: - name: TZ @@ -412,11 +412,11 @@ apiVersion: v1 kind: Service metadata: namespace: ns-d6a0e78ebd674c279614498e4c57b133 - name: zt-module-template + name: zt-module-databus spec: type: NodePort selector: - app: zt-module-template + app: zt-module-databus ports: - protocol: TCP port: 48100 diff --git a/zt-gateway/src/main/resources/application.yaml b/zt-gateway/src/main/resources/application.yaml index 7eff58a2..d1e26b2c 100644 --- a/zt-gateway/src/main/resources/application.yaml +++ b/zt-gateway/src/main/resources/application.yaml @@ -265,6 +265,13 @@ spring: - Path=/admin-api/bse/** filters: - RewritePath=/admin-api/bse/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs + ## databus-server 服务 + - id: databus-admin-api # 路由的编号 + uri: grayLb://databus-server + predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组 + - Path=/admin-api/databus/** + filters: + - RewritePath=/admin-api/databus/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs x-forwarded: prefix-enabled: false # 避免 Swagger 重复带上额外的 /admin-api/system 前缀 @@ -346,6 +353,9 @@ knife4j: - name: base-bse-server service-name: base-server url: /admin-api/bse/v3/api-docs + - name: databus-server + service-name: databus-server + url: /admin-api/databus/v3/api-docs --- #################### 芋道相关配置 ####################