GCLB:前端配置:错误:字段'namedPorts [0] .port的值无效 [英] GCLB : Frontend configuration : Error : Invalid value for field 'namedPorts[0].port

查看:64
本文介绍了GCLB:前端配置:错误:字段'namedPorts [0] .port的值无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用443和添加的SSL证书配置负载平衡(通过Google控制台)"前端配置".

We are configuring Load Balancing (Through Google Console) "Frontend configuration" with 443 and added SSL certificate.

但是当我们单击更新配置时,我收到以下错误

But when we click on update configuration I'm receiving below error

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

有人吗?可以帮上忙.. !!

Anyone ?? can help on same..!!

推荐答案

我已经解决了这个问题,我们可以配置负载平衡(通过GCLOUD命令行)"带有443并添加SSL证书的前端配置".

I got a work around to deal with this issue, we can configuring Load Balancing (Through GCLOUD Command line) "Frontend configuration" with 443 and added SSL certificate.

列出您的SslCertificate资源

gcloud compute ssl-certificates list

配置您的SSL证书资源

gcloud compute ssl-certificates create [SSL_CERTIFICATE_NAME] \
    --certificate [CRT_FILE_PATH] \
    --private-key [KEY_FILE_PATH]

列出您的目标https代理资源

gcloud compute target-https-proxies list

更新目标HTTPS代理

gcloud compute target-https-proxies update  [PROXY_NAME] \
--ssl-certificate [SSL_CERTIFICATE_NAME]

保留全局静态IP地址 [可选步骤]

gcloud compute addresses create [STAIC_IP_NAME] --global

配置全局转发规则

gcloud compute forwarding-rules create [RULE_NAME] \
--global \
--target-https-proxies [PROXY_NAME] \
--address [STAIC_IP_NAME] \
--port-range 443

这篇关于GCLB:前端配置:错误:字段'namedPorts [0] .port的值无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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