title: Limit access to node pools of GKE to Cloud SQL DB
body: <p>I have a GKE cluster and I would like to connect some, but not all (!), pods and services to a managed Postgresql Cloud DB running in the same VPC.</p>
  <p>Of course, I could just go for it (<a href="https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine" rel="nofollow noreferrer">https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine</a>), but I would like to make sure that only those pods and services can connect to the Postgresql DB, that should do so.</p>
  <p>I thought of creating a separate node pool in my GKE cluster (<a href="https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/concepts/node-pools</a>), where only those pods services do run, that should be able to connect to the Postgresql DB, and allow only those pods and services to connect to the DB by telling the DB which IPs to accept. However, it seems that I cannot set dedicated IPs on the node pool level, only on the cluster level.</p>
  <p>Do you have an idea how I can make such a restriction?</p>