Prerequisite
- A private BigAnimal Cluster deployed in your Google Cloud Platform (GCP);
- A VM instance with psql installed in your GCP.
Main steps
- Add peering from BigAnimal VPC to peer with client VPC;
- Add peering from client VPC to peer with BigAnimal VPC;
- Test the connection.
Step 1: Add peering from BigAnimal VPC to peer with client VPC
- In the Google Cloud console, go to the Google Kubernetes Engine (GKE) page:
- Select the GKE by filtering the BigAnimal cluster location. The name prefix is 'dp-':
- In the GKE page, select the VPC under Networking(save the BigAnimal VPC name, you will use it later):
- In the VPC page, click ADD PEERING:
- Create the peering connection, the peered VPC can be in the same or another project:
Step 2: Add peering from client VPC to peer with BigAnimal VPC
- In the Google Cloud console, go to the client VPC page:
- Create the peering connection:
- Check if the status of the peering connection is Active:
- Also, check if the peering connection is Active in BigAnimal VPC:
Step 3: Test the connection
Test the connection from a vm instance in the client VPC: