4 ms·
From the docs: https://cloud.google.com/sql/docs/postgres/connect-external-app#appaccessIP https://cloud.google.com/sql/docs/postgres/connect-external-... > Y
by tarr11 9y ago
From the docs:
https://cloud.google.com/sql/docs/postgres/connect-external-app#appaccessIP https://cloud.google.com/sql/docs/postgres/connect-external-...
> You can grant any application access to a Cloud SQL instance by authorizing the IP addresses that the application uses to connect.
> You can not specify a private network (for example, 10.x.x.x) as an authorized network.
> PostgreSQL instances support only IPv4 addresses. They are automatically configured with a static IP address.
- theptip 9y agoAh, misremembered exactly what the issue was -- you're right, individual endpoints can be whitelisted. Internal networks cannot, which is what I (or anyone else using GKE) would need, since node IPs are ephemeral. I believe the same issue would apply to VM instances that are not pets, (in auto-scaling groups for example), since I'm not aware of being able to auto-assign static IPs there either.