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

Google Cloud Load Balancer to a Cloud Function directly?

· 52CE 我爱测

I'm trying to send traffic from a Google Cloud Load Balancer (LB) directly to a Cloud Function . My Cloud Function has an HTTP URL trigger and if I hit that URL from a browser it works, so all I need is a rule on the load balance…

问题原文

原帖链接 · Panda Coder · CC BY-SA 4.0

I'm trying to send traffic from a Google Cloud Load Balancer (LB) directly to a Cloud Function.

My Cloud Function has an HTTP URL trigger and if I hit that URL from a browser it works, so all I need is a rule on the load balancer to proxy that URL.

So the setup would be:

Load Balancer -> Cloud Function -> Cloud Storage

However from looking at the LB backend configuration, it seems that the only allowed options are either a service (eg a Virtual Machine) or a Bucket (ie Cloud Storage):

load balancer config screenshot

Am I missing something or is there simply no way of sending traffic directly from a Cloud Load Balancer to a Cloud Function?

社区高分解答

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

For future readers, as of July 2020, the HTTPS Load Balancer can now handle routing to Cloud Function, Cloud Run & AppEngine. See below announcement from Google:

https://cloud.google.com/blog/products/networking/better-load-balancing-for-app-engine-cloud-run-and-functions

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

资料来源与适用范围

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

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

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