- Ingress traffic to a cluster is routed through a load balancer, and it is possible to restrict inbound connections using a combination of and .
- Egress traffic from a cluster, such as , , and , use public subnets by default.
Private clusters are not available for .
Create a private cluster
On GCP, new CockroachDB Advanced clusters are private by default. On AWS, newly CockroachDB Advanced with advanced security features clusters deployed on AWS are private by default. Creation of private clusters, as well as Cloud clusters in general, requires the or role.An existing cluster can’t be migrated in-place to a private cluster.
Limit inbound connections from egress operations
Egress traffic from a private cluster to non-cloud external resources will always appear to come from the static IP addresses that comprise the cluster’s NAT gateway. To determine the NAT gateway’s IP addresses, you can initiate an egress operation such as an or operation on the cluster and observe the source addresses of the resulting connections to your non-cloud external resources. Cockroach Labs recommends that you allow connections to such resources only from those IP addresses.What’s next?
Limitations
- An existing cluster can’t be migrated in-place to a private cluster. Instead, migrate the existing cluster’s data to a new private cluster. Refer to .

