This commit is contained in:
owen 2025-03-06 15:01:09 +08:00
parent 56f6bc8911
commit 77801d6f04
2 changed files with 15 additions and 1 deletions

View File

@ -7,6 +7,7 @@ resources:
- api2-service.yaml
- ../base/projects/stock2
- ../base/redis
- ../base/redis-nodeport
- ingress.yaml
configMapGenerator:
@ -27,3 +28,4 @@ patches:
- path: patch/agent-deployment_patch.yaml
- path: patch/h5-deployment_patch.yaml
- path: patch/admin-deployment_patch.yaml
- path: patch/redis-service-nodeport_patch.yaml

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: redis-service-nodeport
spec:
type: NodePort # 或者 NodePort
ports:
- port: 6379
targetPort: 6379
nodePort: 32502 # 可选如果不指定Kubernetes 会自动分配
selector:
app: redis