1
This commit is contained in:
parent
99b282fede
commit
c7eea62ec1
@ -7,6 +7,7 @@ resources:
|
||||
- api2-service.yaml
|
||||
- ../base/projects/stock2
|
||||
- ../base/redis
|
||||
- ../base/redis-nodeport
|
||||
- ingress.yaml
|
||||
|
||||
configMapGenerator:
|
||||
@ -26,3 +27,4 @@ patches:
|
||||
- path: patch/task-deployment_patch.yaml
|
||||
- path: patch/agent-deployment_patch.yaml
|
||||
- path: patch/h5-deployment_patch.yaml
|
||||
- path: patch/redis-service-nodeport_patch.yaml
|
||||
12
gp071/patch/redis-service-nodeport_patch.yaml
Normal file
12
gp071/patch/redis-service-nodeport_patch.yaml
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user