无法通过对等的VPC网络使用私有IP访问Google Cloud SQL
问题描述:
这些步骤是:
- 在项目A"中,我有一个带有Postgresql专用IP的网络A".
- 可以通过私有IP从存在于同一网络A"中的VM访问postgresql.
- 在同一项目A"中创建一个新的网络B"
- 在网络A"和网络B"之间创建"VPC网络对等方"
- 完全开放的防火墙
- 尽管可以ping通网络A"上存在的VM,但无法从网络B"访问postgresql
为什么我无法联系到postgresql?是因为SQL专用IP处于Beta模式,还是我在这里不见了?
Why i can't reach postgresql? Is it because SQL Private IP is in Beta mode, or i'm missing smth here?
答
Cloud SQL通过对等设置来建立私有IP访问,因此网络A与包含您的Cloud SQL实例的网络Z对等.与B对等A时,B无法访问网络Z.
Cloud SQL Private IP access is setup through peering so network A is peered with network Z, which contains your Cloud SQL instance. When you peer A with B, B does not have access to network Z.