Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
启用了 VPC 连接器Route all traffic through the VPC connector和防火墙规则以允许 VPC 的所有出口流量。尽管如此,由于超时,我无法连接到 RabbitMQ 实例(cloudamqp)。
Route all traffic through the VPC connector
我意识到问题在于在没有 NAT 网关的情况下对所有流量使用 Cloud Run VPC 访问器。为相关 VPC 创建 NAT 网关后,问题解决。
在这种情况下,仅将 VPC 访问器用于内部流量也会有所帮助。但是,如果您需要使用静态 IP 将出站请求路由到外部端点,那么您必须使用 Cloud Run + 通过 VPC 访问器 + NAT 的所有流量。