From e88bf7449c4c518832395d0ccd600d60e06f1b44 Mon Sep 17 00:00:00 2001 From: sunlei Date: Wed, 24 Jun 2026 17:26:54 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9A=B4=E9=9C=B2NapCat=20WebUI=E7=BD=91?= =?UTF-8?q?=E5=85=B3NodePort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/prod/api.yaml | 3 ++- .../qqbot/napcat-webui-gateway/gateway-deployment.spec.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/k8s/prod/api.yaml b/k8s/prod/api.yaml index 1ba9215..fa2000e 100644 --- a/k8s/prod/api.yaml +++ b/k8s/prod/api.yaml @@ -172,13 +172,14 @@ metadata: labels: app: kt-napcat-webui-gateway spec: - type: ClusterIP + type: NodePort selector: app: kt-napcat-webui-gateway ports: - name: http port: 48086 targetPort: 48086 + nodePort: 30086 --- apiVersion: apps/v1 kind: Deployment diff --git a/test/modules/qqbot/napcat-webui-gateway/gateway-deployment.spec.ts b/test/modules/qqbot/napcat-webui-gateway/gateway-deployment.spec.ts index 6ed51c0..c2ec6fc 100644 --- a/test/modules/qqbot/napcat-webui-gateway/gateway-deployment.spec.ts +++ b/test/modules/qqbot/napcat-webui-gateway/gateway-deployment.spec.ts @@ -54,6 +54,8 @@ describe('NapCat WebUI Gateway deployment configuration', () => { expect(manifest).toContain('kt-napcat-webui-gateway'); expect(manifest).toContain('containerPort: 48086'); + expect(manifest).toContain('type: NodePort'); + expect(manifest).toContain('nodePort: 30086'); expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_REDIS_HOST'); expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_INTERNAL_SECRET'); expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_INTERNAL_BASE_URL');