To add a cluster node, execute the following operations on the srv host:
Create a virtual machine similarly to creating nodes on cluster deployment and start it.
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
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:
Get the whole list of nodes using the command:
oc get nodes
Remove all pods from the node to be deleted.
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