前端IP在Google云内部的HTTP和HTTPS上监听HTTP和HTTPS负载平衡, [英] Frontend IP listen on HTTP and HTTPS on Google cloud internal HTTP(S) Load Balancing,

查看:103
本文介绍了前端IP在Google云内部的HTTP和HTTPS上监听HTTP和HTTPS负载平衡,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置Google云内部 HTTP(S)负载平衡以侦听具有相同内部前端IP的HTTP和HTTPS.

How can I configure Google cloud internal HTTP(S) Load Balancing to listen on HTTP and HTTPS with the same internal frontend IP.

尝试时出现此错误:IP'XX.XX.XX.XX'已被另一资源使用.

I get this error when trying: IP 'XX.XX.XX.XX' is already being used by another resource.

请注意,在外部HTTP/S负载平衡上,它可以完美运行.

note, on external HTTP/S load balancing it works perfect.

推荐答案

您可以为使用不同IP的内部负载均衡器创建多个前端,但是不能将同一IP用于多个前端.

You can create more than one frontend for an Internal Load Balancer using different IPs, but you cannot use the same IP for more than one frontend.

按照内部l7LB限制在每个VPC中网络中,每个内部托管转发规则都必须具有自己的IP地址."

As per Internal l7LB limitations "Within each VPC network, each internal managed forwarding rule must have its own IP address."

另请参见本文,以确认以下:

See also this article to confirm the following:

如果转发规则的负载均衡方案是以下之一,则它必须具有唯一的IP地址:

If the forwarding rule's load balancing scheme is one of the following, it must have a unique IP address:

  • 内部用于内部TCP/UDP负载平衡器的
  • 用于内部HTTP(S)负载均衡器的INTERNAL_MANAGED
  • Traffic Director的INTERNAL_SELF_MANAGED

对于这种特定情况,我建议使用此链接并将其报告为

For this specific scenario, I would recommend using this link and report it as a Feature Request.

作为一种解决方法,如果您不需要HTTP LB,则可以始终使用TCP/UDP内部负载均衡器,通过该负载均衡器,您可以在使用最多五个不同端口的同一IP之间进行选择,或者使用所有端口,详细信息此处

As a workaround, if you don’t have the requirement of an HTTP LB, you can always use a TCP/UDP Internal Load Balancer, with which you can choose between use up to five different ports for the same IP, or use all ports, details here

支持所有TCP端口或所有UDP端口的内部转发规则允许后端VM运行多个应用程序,每个应用程序都在其自己的端口上.发送到给定端口的流量将传递到相应的应用程序,并且所有应用程序都使用相同的IP地址."

"An internal forwarding rule that supports either all TCP ports or all UDP ports allows backend VMs to run multiple applications, each on its own port. Traffic sent to a given port is delivered to the corresponding application, and all applications use the same IP address."

我希望这会有所帮助.

这篇关于前端IP在Google云内部的HTTP和HTTPS上监听HTTP和HTTPS负载平衡,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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