从 Google Cloud 运行 docker 图像连接到 Google Cloud SQL 实例

Connecting to a Google Cloud SQL instance from a Google Cloud Run docker image

我有一个 Google Cloud 运行 docker 映像,想连接到一个 Cloud SQL 实例。该实例有一个私有 IP,但我似乎无法使用它。

云 运行 是否支持此场景?如何连接?

来自“Connecting to GCP services”:

The following table lists services that are not yet supported by Cloud Run (however, they are supported by Cloud Run on GKE):

  • Cloud SQL
  • Cloud Endpoints
  • Virtual Private Cloud
  • Cloud Memorystore
  • Cloud Load Balancing
  • Cloud Filestore

其中大部分是由于 Cloud 运行 目前缺少 VPC 连接器,但正在进行中,最终将可用。