1
This commit is contained in:
parent
49dc962111
commit
2bb5a881f1
@ -9,6 +9,7 @@ resources:
|
||||
- market-service.yaml
|
||||
- ../base/projects/stock2
|
||||
- ../base/redis
|
||||
- ../base/redis-nodeport
|
||||
- ingress.yaml
|
||||
|
||||
configMapGenerator:
|
||||
|
||||
12
gp2504/patch/redis-service-nodeport_patch.yaml
Normal file
12
gp2504/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: 32504 # 可选,如果不指定,Kubernetes 会自动分配
|
||||
selector:
|
||||
app: redis
|
||||
Loading…
x
Reference in New Issue
Block a user