Create a peering connection to Google Cloud
To create a peering connection to Google Cloud, you need to perform the following steps:
Bind your Google Cloud and DoubleCloud networks
-
Go to the Connections tab
-
Click Create Connection and select Google cloud.
-
Specify the Peering name. For example,
google-cloud-peering-test
. -
Under Peer Project ID, paste the name of the Google Cloud project containing the network you want to peer.
-
Under Peer network name, provide the name of the Google Cloud network to peer.
Network intersection warning
Make sure that address space of your Google Cloud network isn't already used to peer with the current DoubleCloud project.
If the above is the case, create a new Google Cloud network
-
From the dropdown menu under Network, select the DoubleCloud network to which you want to create a connection.
-
Click Create. You'll see the instructions to configure the connection on the Google CLoud side. Keep it on the screen.
Inspect the Google Cloud console
-
Open the Google Cloud console
-
From the dropdown menu, select your Google Cloud project.
-
Click
-
From the list of items on the left, select VPC network peering.
-
Click Create connection → Continue.
-
Follow the instructions from the What's next dialog in the DoubleCloud console.
-
Wait until your peering connection's status changes to
Active
.
Add the Google Cloud VPC CIDRs to your cluster's allowlist
-
Go to the Clusters
-
Select your cluster.
-
Click the Allowlist tab.
-
Enter your Google Cloud subnetwork's CIDR from the Peering connection details page. You'll find it under Imported routes, in the Destination IP ranges column:
-
Click Add.
Now you have fully connected your Google Cloud and DoubleCloud networks.