This commit is contained in:
owen 2024-12-19 15:08:54 +08:00
parent 99b282fede
commit c7eea62ec1
2 changed files with 15 additions and 1 deletions

View File

@ -7,6 +7,7 @@ resources:
- api2-service.yaml - api2-service.yaml
- ../base/projects/stock2 - ../base/projects/stock2
- ../base/redis - ../base/redis
- ../base/redis-nodeport
- ingress.yaml - ingress.yaml
configMapGenerator: configMapGenerator:
@ -26,3 +27,4 @@ patches:
- path: patch/task-deployment_patch.yaml - path: patch/task-deployment_patch.yaml
- path: patch/agent-deployment_patch.yaml - path: patch/agent-deployment_patch.yaml
- path: patch/h5-deployment_patch.yaml - path: patch/h5-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: 30071 # 可选如果不指定Kubernetes 会自动分配
selector:
app: redis