Installing a three-node cluster on GCP

    You can install a three-node cluster using either installer-provisioned or user-provisioned infrastructure.

    You configure a three-node cluster by setting the number of worker nodes to in the install-config.yaml file before deploying the cluster. Setting the number of worker nodes to 0 ensures that the control plane machines are schedulable. This allows application workloads to be scheduled to run from the control plane nodes.

    • You have an existing install-config.yaml file.

    Procedure

    1. Set the number of compute replicas to 0 in your install-config.yaml file, as shown in the following compute stanza:

    2. If you are deploying a cluster with user-provisioned infrastructure:

      • Do not create additional worker nodes.

    Example cluster-scheduler-02-config.yml file for a three-node cluster

    1. apiVersion: config.openshift.io/v1
    2. kind: Scheduler
    3. creationTimestamp: null
    4. spec:
    5. mastersSchedulable: true
    6. policy:
    7. name: ""

    Next steps