drain_node
Cordon a node and evict its pods to safely remove it from service. Preview with dry_run to check impact before draining.
Instructions
[WRITE][risk=high] Cordon a node and evict its pods. HIGH RISK — no full undo.
DaemonSet-managed and mirror pods are skipped (like kubectl drain). The
cordon is reversible (uncordon_node); the evictions are not. Pass
dry_run=True to preview without draining.
Args: name: Node name (see node_list). dry_run: If True, preview without cordoning or evicting. target: k8s target name from config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No |