manage_node
Cordon, uncordon, or drain a Kubernetes node to manage pod scheduling and evict workloads during maintenance or incident response.
Instructions
Perform operations on a Kubernetes node. Supported actions: 'cordon' marks the node as unschedulable (no new pods will be scheduled), 'uncordon' marks the node as schedulable again, 'drain' cordons the node and evicts all non-DaemonSet pods. Drain options: 'delete_empty_dir_data' (allow evicting pods with emptyDir volumes), 'force' (evict pods not managed by a controller), 'timeout' (seconds, default 60).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | node name | |
| force | No | force evict pods not managed by a controller (default false) | |
| action | Yes | action to perform: cordon, uncordon, or drain | |
| timeout | No | drain timeout in seconds (default 60) | |
| delete_empty_dir_data | No | evict pods with emptyDir volumes (default true, set false to skip them) |