流水线自动部署的depolyment.yaml到底怎么写才不会出现以下情况?

已邀请:

配置中指定一个具体的端口

spec:

  clusterIP: 10.43.180.33

  externalTrafficPolicy: Cluster

  ports:

  - name: 80tcp300011

    nodePort: 30001

    port: 80

    protocol: TCP

    targetPort: 80

  selector:

    workload.user.cattle.io/workloadselector: deployment-default-demo

  sessionAffinity: None

  type: NodePort


要回复问题请先登录注册