---
apiVersion: v1
kind: Service
metadata:
  name: name
  namespace: namespace
spec:
  type: NodePort
  ports:
    - port: 8901
      targetPort: 8901
      nodePort: 30901
  selector:
    service: service-name

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐