GCE LoadBalancer:字段“namedPorts[0].port"的无效值:“0".必须大于或等于 1 [英] GCE LoadBalancer : Invalid value for field 'namedPorts[0].port': '0'. Must be greater than or equal to 1

查看:21
本文介绍了GCE LoadBalancer:字段“namedPorts[0].port"的无效值:“0".必须大于或等于 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个 HTTP(S) LoadBalancer 中,我希望更改我的后端配置以将超时从 30 秒增加到 60 秒(我们有几个没有任何日志服务器端的 502,我想检查它是否来自LB)

但是,当我验证更改时,出现错误提示

<块引用>

字段namedPorts[0].port"的无效值:0".必须更大小于等于1

即使我没有改变namedPort.

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-side, I wish to check if it comes from the LB)

But, as I validate the change, I got an error saying

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

even if i didn't change the namedPort.

This issue seems to be the same, but the only solution is a workaround that does not work in my case :

Thanks for your help,

解决方案

I'm sure the OP has resolved this by now, but for anyone else pulling their hair out, this might work for you:

There's a bug of sorts in the GCE Load Balancer UI. If you add an empty frontend IP/Port combo by accident, it will create a named port in the Instance Group called port0 with a value of 0. You may not even realize this happened because you won't see the empty frontend mapping in the console.

To fix the problem, edit your instance group and remove port0 from the list of port name mappings.

这篇关于GCE LoadBalancer:字段“namedPorts[0].port"的无效值:“0".必须大于或等于 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆