drain_node
Cordon a Kubernetes node and evict its pods for maintenance; skips DaemonSet and mirror pods, with dry-run preview before irreversible evictions.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "drain_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No |