ci: 暴露NapCat WebUI网关NodePort
This commit is contained in:
parent
bf096ea89a
commit
e88bf7449c
@ -172,13 +172,14 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: kt-napcat-webui-gateway
|
app: kt-napcat-webui-gateway
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
app: kt-napcat-webui-gateway
|
app: kt-napcat-webui-gateway
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 48086
|
port: 48086
|
||||||
targetPort: 48086
|
targetPort: 48086
|
||||||
|
nodePort: 30086
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|||||||
@ -54,6 +54,8 @@ describe('NapCat WebUI Gateway deployment configuration', () => {
|
|||||||
|
|
||||||
expect(manifest).toContain('kt-napcat-webui-gateway');
|
expect(manifest).toContain('kt-napcat-webui-gateway');
|
||||||
expect(manifest).toContain('containerPort: 48086');
|
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_REDIS_HOST');
|
||||||
expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_INTERNAL_SECRET');
|
expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_INTERNAL_SECRET');
|
||||||
expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_INTERNAL_BASE_URL');
|
expect(manifest).toContain('NAPCAT_WEBUI_GATEWAY_INTERNAL_BASE_URL');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user