Adding and Deleting Work Nodes

To add a cluster node, execute the following operations on the srv host:

  1. Create a virtual machine similarly to creating nodes on cluster deployment and start it.

  2. Confirm the certificate request using the command:

oc get csr	
oc get csr -o go-template='{{range .items}}{{if not .status}}{{.metadata.name}}{{"\n"}}{{end}}{{end}}' | xargs oc adm certificate approve
  1. Get the whole list of nodes using the command:

oc get nodes

After executing the operations the cluster node is added. To add several cluster nodes, repeat the steps.

To delete cluster node:

  1. Get the whole list of nodes using the command:

oc get nodes
  1. Remove all pods from the node to be deleted.

  2. Delete the specified node:

oc delete node <node name>

After executing the operations the specified cluster node is deleted.

See also:

Preparation and Deployment of Fault-Tolerant Cluster Based on OKD/OCP