You must create a VPC in Google Cloud Platform (GCP) for your {product-title} cluster to use. You can customize the VPC to meet your requirements. One way to create the VPC is to modify the provided Deployment Manager template.
Note
|
If you do not use the provided Deployment Manager template to create your GCP infrastructure, you must review the provided information and manually create the infrastructure. If your cluster does not initialize correctly, you might have to contact Red Hat support with your installation logs. |
-
Configure a GCP account.
-
Generate the Ignition config files for your cluster.
-
Copy the template from the Deployment Manager template for the VPC section of this topic and save it as
01_vpc.py
on your computer. This template describes the VPC that your cluster requires. -
Create a
01_vpc.yaml
resource definition file:$ cat <<EOF >01_vpc.yaml imports: - path: 01_vpc.py resources: - name: cluster-vpc type: 01_vpc.py properties: infra_id: '${INFRA_ID}' (1) region: '${REGION}' (2) master_subnet_cidr: '${MASTER_SUBNET_CIDR}' (3) worker_subnet_cidr: '${WORKER_SUBNET_CIDR}' (4) EOF
-
infra_id
is theINFRA_ID
infrastructure name from the extraction step. -
region
is the region to deploy the cluster into, for exampleus-east1
. -
master_subnet_cidr
is the CIDR for the master subnet, for example10.0.0.0/19
. -
worker_subnet_cidr
is the CIDR for the worker subnet, for example10.0.32.0/19
.
-
-
Create the deployment by using the
gcloud
CLI:$ gcloud deployment-manager deployments create ${INFRA_ID}-vpc --config 01_vpc.yaml