openshift-cluster-add-nodes¶
A blueprint for adding or removing nodes in the OpenShift cluster
This blueprint manages the lifecycle of nodes in the OpenShift cluster by provisioning new nodes and decommissioning removed nodes based on pool status and parameters.
Behavior¶
The blueprint operates on machines in the cluster's pool based on their status:
Adding Nodes¶
- Machines with
openshift/roleparameter andFreepool status will be provisioned - Nodes can be assigned role
controlplaneorworker
Removing Nodes¶
- Machines without
openshift/roleparameter andAllocatedpool status will be decommissioned - Nodes are cordoned, drained, and deleted from the cluster
- Machines are released back to the pool
- Note: Removing control plane nodes is not officially supported and may cause cluster instability
Requirements¶
Access Requirements¶
- Cluster admin privileges
- Valid kubeconfig
Cluster State¶
- Operational API server
- Healthy etcd cluster
Usage¶
To Add Nodes¶
- Add machines to the cluster's pool
- Set the
openshift/roleparameter (controlplaneorworker). Theopenshift-controlplaneandopenshift-workerprofiles can be used to set this parameter. - Run this blueprint
- Nodes will be provisioned and joined to the cluster
To Remove Nodes¶
- Verify you are not removing a controlplane node as this is not supported
- Remove the
openshift/roleparameter from the machine - Run this blueprint
- Nodes will be gracefully removed from the cluster
- Machines will be freed back to the pool
Select this blueprint from the cluster management menu when you need to add or remove nodes.
Objects that Reference openshift-cluster-add-nodes¶
Not used in current content packs
Objects used by openshift-cluster-add-nodes¶
- tasks openshift-obtain-machine-config in field Tasks as value openshift-obtain-machine-config
- tasks openshift-direct-pool-operations in field Tasks as value openshift-direct-pool-operations
- tasks openshift-cluster-update-zone in field Tasks as value openshift-cluster-update-zone
- tasks openshift-manage-in-process-machines in field Tasks as value openshift-manage-in-process-machines