Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Guides > Implementation Guide—Red Hat OpenShift Container Platform 4.12 on Intel-powered Dell Infrastructure > Scaling up the cluster
Scale up an existing OpenShift cluster by adding more compute nodes.
Ensure that:
If DNS is hosted on the CSAH, update the /var/named/<zone> file and restart named service by running the following command:
systemctl restart named
To expand an existing cluster:
oc -n openshift-machine-api create -f <name of yaml file>
The file creates two secrets: the first contains the NMState config, and the second contains the BMC credentials. These secrets are referenced in the BMC resource.
[root@ipi-65 ~]# oc get bmh -n openshift-machine-api
The following is sample output from the command:
NAME STATE CONSUMER ONLINE ERROR AGE
ipi-m1 externally provisioned ipi-6hgzr-master-0 true 3d7h
ipi-m2 externally provisioned ipi-6hgzr-master-1 true 3d7h
ipi-m3 externally provisioned ipi-6hgzr-master-2 true 3d7h
ipi-w1 available true 3d1h
The node is booted from the live CoreOS. The state progresses from Registering to Inspecting to Available.
[root@ipi-65 ~]# oc get machinesets -n openshift-machine-api
The following is sample output from the command:
NAMESPACE NAME DESIRED CURRENT READY AVAILABLE AGE
openshift-machine-api ipi-6hgzr-worker-0 0 0 10d
[root@ipi-65 ~]# oc scale --replicas=1 machineset ipi-6hgzr-worker-0 -n openshift-machine-api
The nodes progress from Available to Provisioning to Provisioned.
[root@ipi-65 ~]# oc get bmh -n openshift-machine-api
The following is sample output from the command:
NAME STATE CONSUMER ONLINE ERROR AGE
Ipi-m1 externally provisioned ipi-6hgzr-master-0 true 3d7h
ipi-m2 externally provisioned ipi-6hgzr-master-1 true 3d7h
ipi-m3 externally provisioned ipi-6hgzr-master-2 true 3d7h
ipi-w1 provisioned ipi-6hgzr-worker-0-t29vl true 3d1h
oc get csr -o name | xargs oc adm certificate approve