1
This commit is contained in:
parent
56f6bc8911
commit
77801d6f04
@ -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:
|
||||||
@ -27,3 +28,4 @@ patches:
|
|||||||
- 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/admin-deployment_patch.yaml
|
- path: patch/admin-deployment_patch.yaml
|
||||||
|
- path: patch/redis-service-nodeport_patch.yaml
|
||||||
12
gp2502/patch/redis-service-nodeport_patch.yaml
Normal file
12
gp2502/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: 32502 # 可选,如果不指定,Kubernetes 会自动分配
|
||||||
|
selector:
|
||||||
|
app: redis
|
||||||
Loading…
x
Reference in New Issue
Block a user