无法使用公共IP连接到Cloud Composer的Cloud SQL

发布于 2025-01-25 16:06:08 字数 608 浏览 3 评论 0原文

我正在尝试将Google Composer的实例与Google Cloud Postgres联系起来。我正在尝试通过公共IP来做到这一点。 DAG错误是说我无法连接到服务器。 DAG使用Postgres操作员。

然后我在作曲家实例中配置了一个连接。这具有我的Cloud SQL Postgres服务器的公共IP。

我认为错误是不允许云作曲家IP进入云SQL Server的防火墙。我做错了吗?我应该使用其他操作员吗?我已经陷入了几天的时间,并用Google筋疲力尽。

任何帮助将不胜感激!

谢谢

I'm trying to connect my instance of Google Composer to Google cloud Postgres. I am trying to do this via the Public IP.
The DAG error is saying I cant connect to the server. The DAG is using a postgres operator.

enter image description here

I then have a connection configured in my composer instance. This has the public ip of my Cloud SQL Postgres server.

enter image description here

I think the error is around not allowing the cloud composer ip into the firewall for the Cloud SQL server. Am I doing this the wrong way? Should I be using a different operator? Ive been stuck on this for a few days now and exhausted my options from google.

Any help would be greatly appreciated!

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无尽的现实 2025-02-01 16:06:08

您必须更新授权网络公共IP。确保仅授予公共知识产权。

此外,请记住,开箱即用,云SQL流量没有加密,如果您将私有IP与Cloud SQL代理使用,则强烈建议在云SQL数据库上添加SSL

You have to update the authorized network on Cloud SQL to allow the Composer public IP. Be sure to only grant the public IP.

In addition, keep in mind that, out of the box, the Cloud SQL traffic is not encrypted and if you use private IP with CLoud SQL proxy, it's strongly recommended to add SSL on the Cloud SQL database

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文