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');