The OpenShift 4 IPI GCP variable file can be found at OCP-4.X/vars/install-on-gcp.yml
. It will configure the deployment playbook at OCP-4.X/deploy-cluster.yml
to perform a cluster installation on GCP. In addition to installing a cluster, the playbook can also perform day 2 operations to include deploying three infra nodes and deploying a workload node to isolate workload driver pods from openshift-scale/workloads repo.
Running from the CLI:
$ cp OCP-4.X/inventory.example inventory
$ # Edit inventory and add your expected orchestration host
$ # Edit deployment variables (Ex vi OCP-4.X/vars/install-on-gcp.yml) or define env variables
$ ansible-playbook -v -i inventory OCP-4.X/deploy-cluster.yml -e platform=gcp
Documents for initializing can be found here - ocp4_common_env_var.md
After that initialize the following variables -
Default: No default. The service account is needed for GCP API access.
Default: No default. Service account email.
Default: No default. Path to the GCP auth key file, this is need to authenticate to google cloud.
Default: No default. Project to use.
Default: No default.
The GCP region to install on to. Example: us-central1
Default: No default. The base domain for the cluster.
Default: No default. The name of the cluster.
Default: 3
The number of master nodes.
Default: 5
The number of worker nodes to install.
Default: n1-standard-4
The vm size of the masters.
Default: n1-standard-4
The vm size of the worker nodes.
Default: 64
The root volume disk size for the masters.
Default: 64
The root volume size for worker nodes.
Default: machine.openshift.io
The prefix used in machinesets. Usually this is machine.openshift.io
however it might be sigs.k8s.io
depending on version installed.
Default: n1-standard-4
The vm size for infra nodes.
Default: n1-standard-4
The vm size for the workload node.
Default: 64
The root volume size for the infra nodes.
Default: pd-ssd
The root volume type for infra nodes.
Default: 64
The root volume size for the workload node.
Default: pd-ssd
The root volume type for workload node.
Default: 15d
The retention period for the Prometheus server.
Default: pd-ssd
The storage class for Prometheus server.
Default: 10Gi
The storage size for Prometheus server.
Default: pd-ssd
The storage class for the alertmanager servers.
Default: 2Gi