GCE LoadBalancer : Invalid value for field 'namedPorts[0].port': '0'. Must be greater than or equal to 1

前端 未结 3 984
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 05:44

In one of my HTTP(S) LoadBalancer, I wish to change my backend configuration to increase the timeout from 30s to 60s (We have a few 502\'s that do not have any logs server-s

3条回答
  •  -上瘾入骨i
    2020-12-11 06:10

    I faced the same issue and @tmirks 's fix didn't work for me.

    After experimenting with GCE for a while, I realised that the issue is with the service.

    By default all services are type: ClusterIP unless you specified otherwise.

    Long story short, if your service isn't exposed as type: NodePort than the GCE load balancer won't route the traffic to it.

    From the official Kubernetes project:

    nodeport is a requirement of the GCE Ingress controller (and cloud controllers in general). "On-prem" controllers like the nginx ingress controllers work with clusterip:

提交回复
热议问题