Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Deployment Guide—Red Hat OpenShift Container Platform 4.2 > Adding a worker node
Perform the following tasks to add a worker (compute) node. Unless directed otherwise, perform the tasks as user ansible.
To add a node as worker3 (because there are already two worker nodes):
worker_nodes:
- name: worker1
mac: 3C:FD:FE:B8:DD:10
ip: 100.82.46.21
- name: worker2
mac: 3C:FD:FE:B8:E1:A0
ip: 100.82.46.22
- name: worker3
mac: 3C:FD:FE:B8:DD:00
ip: 100.82.46.23
ansible-playbook -i hosts ocp.yml
When the system boots, it automatically boots into the PXE network, as shown in the following figure:
Figure 9. iDRAC console: PXE menu
Figure 10. iDRAC console: Worker node
After the installation is complete, the node reboots to fetch the worker configuration file.
oc get csr -ojson | jq -r '.items[] | select(.status == {} ) | .metadata.name' | xargs oc adm certificate approve
certificatesigningrequest.certificates.k8s.io/csr-2jsd9 approved
certificatesigningrequest.certificates.k8s.io/csr-7cv46 approved
certificatesigningrequest.certificates.k8s.io/csr-7wslk approved
certificatesigningrequest.certificates.k8s.io/csr-bpdzf approved
certificatesigningrequest.certificates.k8s.io/csr-pzllb approved
certificatesigningrequest.certificates.k8s.io/csr-rh5zs approved
certificatesigningrequest.certificates.k8s.io/csr-z9m5w approved
oc get nodes
NAME STATUS ROLES AGE VERSION
etcd-0.ocp.example.com Ready master 2d v1.14.6+c07e432da
etcd-1.ocp.example.com Ready master 2d v1.14.6+c07e432da
etcd-2.ocp.example.com Ready master 2d v1.14.6+c07e432da
worker1.ocp.example.com Ready worker 47h v1.14.6+c07e432da
worker2.ocp.example.com Ready worker 47h v1.14.6+c07e432da
worker3.ocp.example.com Ready worker 4m18s v1.14.6+c07e432da