Google cloud platform 是否可以将同一url结构映射到多个云运行服务?
我有多个服务,它们都位于同一子域下,只能通过给定URL中的路径来区分。但是,URL中的路径不是服务的名称。如果我使用cloud run,是否有方法创建URL映射/掩码以将流量正确路由到我的服务?例如:Google cloud platform 是否可以将同一url结构映射到多个云运行服务?,google-cloud-platform,google-cloud-run,Google Cloud Platform,Google Cloud Run,我有多个服务,它们都位于同一子域下,只能通过给定URL中的路径来区分。但是,URL中的路径不是服务的名称。如果我使用cloud run,是否有方法创建URL映射/掩码以将流量正确路由到我的服务?例如: subdomain.example.com/path1和subdomain.example.com/path2可能分别映射到服务foo和bar。我知道我可以使用URL地图将path1路由到foo和path2路由到bar,但我也希望将流量发送到每个服务的特定版本。URL掩码允许您指定标记,因此我可以
subdomain.example.com/path1
和subdomain.example.com/path2
可能分别映射到服务foo
和bar
。我知道我可以使用URL地图将path1
路由到foo
和path2
路由到bar
,但我也希望将流量发送到每个服务的特定版本。URL掩码允许您指定标记,因此我可以将特定的暂存URL设置为-subdomain.example.com/path1
和-subdomain.example.com/path2
,但我不知道在只有标记
是变量时如何配置URL掩码。我将如何为以下项目安排交通路线:
-subdomain.example.com/path1
=>foosvc(revision=tag)
subdomain.example.com/path1
=>foosvc
-subdomain.example.com/path2
=>bar svc(revision=tag)
subdomain.example.com/path2
=>bar-svc
我愿意在foo-svc
和bar-svc
的旁边部署一个单独的云运行服务foo-svc
和bar-svc
,如果这能让事情变得更简单的话
是否可以将同一url结构映射到多个云运行
服务
仅使用谷歌云运行和自定义域,没有
结合谷歌云HTTPS负载平衡器,是的
如果添加负载平衡器,Cloud Run将成为后端
使用负载平衡器可以使用URL映射将流量定向到后端。这还增加了许多附加功能。此链接显示如何设置所有内容
谢谢您的回复。我看过这些文档,但不确定是否理解其局限性。基于上述我的设计目标,我看不出如何使用URL掩码,因为它看起来必须添加到字符串中,但服务的名称不在我的列表中URL@mvhatch我需要更多的细节来理解你的评论。云运行无法重新映射URL,HTTP(S)负载平衡器可以。如果文件中有相反的章节,请参考。