/openshift-ops:openshift-node-operationsfrom openshift-ops
Guides OpenShift node lifecycle management: safe drain procedures, automated vs manual infrastructure decisions, node addition/removal with CSR handling and MachineSet scaling.
Ships in openshift-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This fork affects EVERY node operation. Determine it first.
maxUnavailable: 0 or minAvailable equal to current replica count will block drain silently — it just hangs. Run oc get pdb -A and check if any PDB protects pods on your target node.--grace-period explicitly for databases and message queues.--force loses data. Force drain deletes pods with emptyDir volumes without waiting for graceful shutdown. Only use for node decommission, never for maintenance where you expect the node to return.--delete-emptydir-data is required for most drains because system pods (metrics, logging) use emptyDir. Without this flag, drain refuses to proceed. This is safe — it's the user-data emptyDir volumes you need to worry about, and --force is what skips their graceful handling.Scale the MachineSet: oc scale machineset <name> -n openshift-machine-api --replicas=<N>. Monitor the Machine status (not just node status) — a Machine stuck in "Provisioning" means the cloud provider call failed (quota, network, AMI issues).
After provisioning and booting with ignition, watch for TWO rounds of CSRs:
Both must be approved. Don't bulk-approve with xargs in production without inspecting each CSR — a rogue CSR could grant access to an unauthorized node.
Delete the Machine object, NOT the node object. The MachineSet controller notices the replica count is short and creates a replacement automatically. Deleting just the node object orphans the underlying VM — it keeps running and costing money but the cluster doesn't know about it.
Cordon → drain → oc delete node <name> → decommission the hardware/VM. The cluster does not manage the underlying infrastructure, so deleting the node object is the final cluster-side step.
For automated infra, simply deleting the Machine triggers replacement. For manual infra, you must provision a new machine from scratch (RHCOS + ignition + CSR approval + labeling).
When a node shows NotReady, check in this order (most common causes first):
/var/lib/containers/ fills up from accumulated images. Clean with crictl rmi --prune via oc debug node/. Also check journal size — journalctl --vacuum-time=3d reclaims space.oc adm top pods -A — it may be system workloads (monitoring, logging) not user pods causing pressure.oc debug node/<name>, then chroot /host && systemctl status kubelet. Check journalctl -u kubelet for the actual error.oc get csr — pending CSRs for the node indicate cert renewal problems.spec.template.spec.metadata.labels.oc debug node/ creates a privileged pod on the node. If the node can't schedule pods (disk full, kubelet down), debug won't work either. In that case, SSH is the only option.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redhat-community-ai-tools/claude-plugins --plugin openshift-ops4 skills in this plugin
/openshift-cluster-upgradePlan and troubleshoot OpenShift cluster upgrades with focus on irreversibility, upgrade-path validation, and stuck-upgrade diagnosis./openshift-debuggingDiagnose OpenShift cluster issues using layered triage, failure-mode classification, and prioritized diagnostic workflows./openshift-operator-troubleshootingDiagnose degraded cluster operators and failing OLM operators using status-triple analysis, CSV lifecycle debugging, and OLM component triage.Other plugins' skills for the same job