Data Integration Elastic Administration > Google Cloud integration tasks > Prepare the VPC and subnets
  

Prepare the VPC and subnets

If you want to create your own VPC and subnets to host an elastic cluster, prepare the VPC network and subnets according to cluster requirements.
To prepare the network and subnets, complete the following tasks after you create a VPC:
  1. 1. Create a subnet that supports enough IP addresses for the nodes in the elastic cluster.
  2. 2. Create a Google Cloud NAT gateway.
  3. 3. Create firewall rules in the VPC network to allow TCP traffic.

Step 1. Create a subnet with enough IP addresses

Create a subnet that supports enough IP addresses for all the nodes in the elastic cluster within your VPC network.
Calculate the number of required IP addresses according to the following guidelines:
For example, if the elastic cluster can have a maximum of 10 worker nodes, each subnet must support at least 11 IP addresses.

Step 2. Create a Google Cloud NAT gateway

If you need to connect to the Internet from private nodes that do not have external IP addresses, create a Google Cloud Network Address Translator (NAT) gateway.
In Google Cloud NAT, create a NAT gateway in the VPC network with the following configuration:
Ensure that the NAT gateway is running before you run an elastic job.

Step 3. Create firewall rules in the VPC network

Create a firewall rule for the VPC network to allow TCP traffic from the IP addresses of the Secure Agent machine and the NAT gateway.
In Google Cloud, create a firewall rule for the VPC network with the following configuration: