Set up a VPC network
Before you begin
Before setting up the VPC network, you'll need the following:
-
The CIDR block you want to use for your VPC.
- Refer to Setting the CIDR and sizing your VPC.
-
The details of the application VPC you want to peer with.
-
AWS - the AWS account ID, and the VPC ID, region, and CIDR block. To obtain these details, navigate to your AWS Your VPCs page for the region where the VPC is located.
-
GCP - the project ID and the network name, and CIDR block. To obtain these details, navigate to your GCP VPC networks page.
-
Tasks
To create a VPC network, you need to complete the following tasks:
-
-
The VPC reserves a range of IP addresses for the network. The range can't overlap with the range used by any application VPC you want to peer.
-
VPCs are configured on the VPCs page of the VPC Network tab on the Network Access page.
-
The status of the VPC is Active when done.
-
After the VPC is created, you can deploy a cluster in the VPC; you don't need to wait until the VPC is peered.
-
-
Create a peering connection between the VPC and the application VPC on the cloud provider network.
-
Peering connections are configured on the Peering Connections page of the VPC Network tab on the Network Access page.
-
The status of the peering connection is Pending when done; to make the connection active, you must configure your cloud provider.
-
-
Configure your cloud provider to confirm the connection.
- In AWS, accept the peering request.
- In GCP, create a peering connection.
- The status of the peering connection changes to Active once communication is established.
-
Add the application VPC CIDR to the cluster IP allow list.
- To communicate with a cluster, networks must be added to the cluster IP allow list.
With the exception of 3, these tasks are performed in Yugabyte Cloud.