From b6c35f28e35077096ef71d4857d220d0ee13b339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E4=BD=B3=E5=B8=86?= <452531855@qq.com> Date: Mon, 14 Sep 2026 14:37:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(network-agent):=20headless=20Service=20?= =?UTF-8?q?=E6=89=93=20mixingx.io/role=3Dnode-id=20=E6=A0=87=E7=AD=BE=20?= =?UTF-8?q?=E2=80=94=E2=80=94=20=E7=BA=B3=E5=85=A5=20Gateway=20K8s=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=8F=91=E7=8E=B0,=E7=94=9F=E6=88=90=20/api/?= =?UTF-8?q?network/**=20=E9=80=8F=E4=BC=A0=E8=B7=AF=E7=94=B1;=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E8=AF=B4=E6=98=8E=E5=89=8D=E7=AB=AF=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=94=B9=E7=BB=8F=20Gateway=20=E5=90=8C=E6=BA=90=E8=BD=AC?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release-charts/mixingx-network-agent/templates/service.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release-charts/mixingx-network-agent/templates/service.yaml b/release-charts/mixingx-network-agent/templates/service.yaml index 26f623b..e9f4194 100644 --- a/release-charts/mixingx-network-agent/templates/service.yaml +++ b/release-charts/mixingx-network-agent/templates/service.yaml @@ -1,6 +1,8 @@ # Headless 诊断服务: DNS network-agent 返回各节点 agent 的全部地址。 # 注意: 每个 agent 只管理自己所在节点,不要用普通 ClusterIP Service 访问 # (会在节点间随机负载均衡导致操作到错误的主机)。前端弹窗始终直连节点 IP。 +# mixingx.io/role 标签让 Gateway 发现该服务并生成 /api/network/** 透传路由, +# 前端网络设置弹窗经 Gateway 同源转发访问(消除跨域)。 apiVersion: v1 kind: Service metadata: @@ -8,6 +10,8 @@ metadata: labels: app.kubernetes.io/name: mixingx app.kubernetes.io/component: network-agent + mixingx.io/role: network-agent + mixingx.io/node-id: network-agent spec: clusterIP: None selector: