ci: 暴露NapCat WebUI网关NodePort

This commit is contained in:
sunlei 2026-06-24 17:26:54 +08:00
parent bf096ea89a
commit e88bf7449c
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

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