GCLB: Frontend configuration: Error: Invalid value for 'namedPorts [0] .port field

We set up load balancing (through the Google Console) " Interface Configuration " with 443 and added an SSL certificate.

But when we click on update settings, I get below error

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

Is anyone can help on the same .. !!

+1
source share
1 answer

I have work to solve this problem, we can configure the load balancing ( Via the GCLOUD command line ) " Interface Configuration " with 443 and an SSL certificate has been added.

List SslCertificate Resources

gcloud compute ssl-certificates list 

Configure SSL Certificate Resource

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

List resources target-https-proxies

 gcloud compute target-https-proxies list 

Update Target HTTPS Proxy

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

reserve a global static IP address [optional step]

 gcloud compute addresses create [STAIC_IP_NAME] --global 

Configure Global Forwarding Rule

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

Source: https://habr.com/ru/post/1270971/


All Articles