大网数据广告活动
服务器运维问答

GCP load balancer with existing VMs

· 52CE 我爱测

I'm in the process of setting up a HTTPS load balancer in GCP but have faced some challenges. I have two existing VMs I want to load balance traffic to, these are in two different GCP VCP networks. When creating a load balancer t…

问题原文

原帖链接 · secret_cinema · CC BY-SA 4.0

I'm in the process of setting up a HTTPS load balancer in GCP but have faced some challenges.

I have two existing VMs I want to load balance traffic to, these are in two different GCP VCP networks.

When creating a load balancer through the GCP Console I'm asked to chose or create an instance group but when creating one I find no option in adding existing VMs.

What I want to accomplish is to create a load balancer available through internet that balances traffic to my two existing VMs that are in two different networks in different zones. How can I do this?

已采纳解答

原帖链接 · Wojtek_B · CC BY-SA 4.0

You have VM's in different VPC's so you will be unable to create an instance group and load balancer;

Under VM instances select one or more existing VMs to add to the group. You can only select VMs that are in the same zone & VPC network (see section #4).

To set up a load balancer your VM's have to be in the same region & VPC.

If you can move one of your VM's so that both are in the same VPC then you can create an unmanaged instance group, add both VM's and then create external HTTPS load balancer.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-06-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。