Configure a VPC network
Stay organized with collections
Save and categorize content based on your preferences.
Parallelstore runs within a Virtual Private Cloud (VPC) which provides networking functionality to Compute Engine virtual machine (VM) instances, Google Kubernetes Engine (GKE) clusters, and serverless workloads.
The same VPC network must be specified when creating the Parallelstore instance and client Compute Engine VMs or Google Kubernetes Engine clusters
You must also configure private services access within your VPC.
Configure IAM permissions
You must have one of the following IAM permissions in order to set up network peering for your project:
- Compute Network Admin (
roles/compute.networkAdmin) - Service Networking Admin
(
roles/servicenetworking.networksAdmin)
To grant a role:
gcloudprojectsadd-iam-policy-bindingPROJECT_ID\
--member="user:EMAIL_ADDRESS"
--role=ROLE
Create and configure the VPC
Enable service networking.
gcloudservicesenableservicenetworking.googleapis.comCreate a VPC Network.
gcloudcomputenetworkscreateNETWORK_NAME\ --subnet-mode=auto\ --mtu=8896Create an IP range.
Private services access requires a prefix-length of at least
/24(256 addresses). Parallelstore reserves 64 addresses per instance, which means that you can re-use this IP range with other services or other Parallelstore instances if needed.gcloudcomputeaddressescreateIP_RANGE_NAME\ --global\ --purpose=VPC_PEERING\ --prefix-length=24\ --description="Parallelstore VPC Peering"\ --network=NETWORK_NAMEGet the CIDR range associated with the range you created in the previous step.
CIDR_RANGE=$( gcloudcomputeaddressesdescribeIP_RANGE_NAME\ --global\ --format="value[separator=/](address, prefixLength)" )Create a firewall rule to allow TCP traffic from the IP range you created.
gcloudcomputefirewall-rulescreateFIREWALL_NAME\ --allow=tcp\ --network=NETWORK_NAME\ --source-ranges=$CIDR_RANGEConnect the peering.
gcloud services vpc-peerings connect \ --network=NETWORK_NAME \ --ranges=IP_RANGE_NAME \ --service=servicenetworking.googleapis.com
Known issues
Parallelstore instances and clients cannot use an IP address from the 172.17.0.0/16 subnet range. See Known issues for more information.