通过 Cloud Code 在本地运行时通过 Google Cloud Run 连接到 Cloud SQL 时出现问题

问题描述 投票:0回答:1

我尝试通过 Cloud Code 在 VSCode 中本地运行 Cloud Run 容器,但由于以下错误,每次尝试构建它都会失败:

Waiting for deployments to stabilize...
 - ...: container cloud-sql-proxy terminated with exit code 1
    - ...: container cloud-sql-proxy terminated with exit code 1
      > Error retrieving logs for pod ...: exit status 1.
Try `kubectl logs d... -n default -c cloud-sql-proxy`

运行

kubectl logs d... -n default -c cloud-sql-proxy
给出以下输出:

E0228 10:35:09.202560    9698 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:53943/api?timeout=32s": dial tcp 127.0.0.1:53943: connect: connection refused
E0228 10:35:09.202732    9698 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:53943/api?timeout=32s": dial tcp 127.0.0.1:53943: connect: connection refused
E0228 10:35:09.203867    9698 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:53943/api?timeout=32s": dial tcp 127.0.0.1:53943: connect: connection refused
E0228 10:35:09.203994    9698 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:53943/api?timeout=32s": dial tcp 127.0.0.1:53943: connect: connection refused
The connection to the server 127.0.0.1:53943 was refused - did you specify the right host or port?

如有任何建议,我们将不胜感激。

我使用的是 Mac M1 芯片,我的 Cloud Run 容器是使用 Dockerfile 构建的,以防万一

docker google-cloud-sql google-cloud-run google-cloud-code
1个回答
0
投票

感谢您让我们注意到这一点。我们将调查并尽快回复。

© www.soinside.com 2019 - 2024. All rights reserved.