将 Cloud SQL 代理与合作代理结合使用

问题描述

我正在尝试使用 Cloud sql 代理连接 Cloud sql,但问题是在我的公司中,我们使用专用 VPN 连接到 Google 服务,因此我需要启用 VPN 及其代理。

当我执行

./cloud_sql_proxy -instances=<CONNECTION-NAME>=tcp:5432

如果我使用环境变量声明代理和用户密码,它返回我,

errors parsing config:
    Get "https://sqladmin.googleapis.com/sql/v1beta4/projects/<PROJECT>/instances/<REGION>~<sql-INSTANCE>?alt=json&prettyPrint=false": proxyconnect tcp: tls: first record does not look like a TLS handshake

如果我删除环境变量,它会返回,

errors parsing config:
    Get "https://sqladmin.googleapis.com/sql/v1beta4/projects/<PROJECT>/instances/<REGION>~<INSTANCE-sql>?alt=json&prettyPrint=false": dial tcp <IP>:<PORT>: I/O timeout

有人决定用另一个代理执行 cloud_sql_proxy 吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)