Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

CloudSQL Internal IP does not belong to connected network subnet range

Hello Experts,

I have recently done a VPC setup where Subnet range for "us-central1" is 

us-central1
IPv4
  • 10.128.0.0/20
 
 
None
 

However when I configured my CloudSQL to be part of this network the IP it got does not belong to the above subnet range.

 PostgreSQL 10.123.224.10

Can you please suggest why this is happening.

Thanks for the help.

Solved Solved
0 2 111
1 ACCEPTED SOLUTION

It seems when we enable private IP for a database a new subnet gets created for "Private Service Access" for the database which does not get advertised by default.

View solution in original post

2 REPLIES 2

This is blocking Access to the database via VPC peering. This is because it complains about not finding any Subnet for the IP address in the peered network. Any help is appreciated on how to get access the this database via peering.

It seems when we enable private IP for a database a new subnet gets created for "Private Service Access" for the database which does not get advertised by default.