stock2_argocd/gp2504/patch/redis-service-nodeport_patch.yaml
2025-04-14 20:19:43 +08:00

12 lines
266 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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