Skip to content

A task to remove Advanced Cluster Management (ACM) from an OpenShift cluster

OpenShift Node Removal Task

This task manages the safe removal of a node from an OpenShift cluster. It handles proper workload draining, node cordoning, and cleanup of cluster resources associated with the node.

Requirements

Cluster Access

  • Administrative access to OpenShift cluster
  • Valid kubeconfig configuration
  • Cluster-admin privileges
  • Node management permissions

Node State

  • Node should be identified for removal
  • Workloads should be able to be rescheduled
  • Sufficient cluster capacity for workload migration

Usage

Basic Node Removal

# Apply node removal task
drpcli machines tasks add <machine-uuid> openshift-cluster-remove-node

# Monitor node status
oc get nodes

Removal Process

  1. Cordons node to prevent new workloads
  2. Drains workloads with:
  3. Force flag for stuck pods
  4. Deletion of local data
  5. Respect for pod disruption budgets
  6. Removes node from cluster
  7. Updates cluster configuration