manage_node
Control node scheduling and pod eviction in Kubernetes. Cordon to prevent new pods, uncordon to allow, or drain to evict pods with options for emptyDir data and force eviction.
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 |
|---|---|---|---|
| action | Yes | action to perform: cordon, uncordon, or drain | |
| name | Yes | node name | |
| delete_empty_dir_data | No | evict pods with emptyDir volumes (default true, set false to skip them) | |
| force | No | force evict pods not managed by a controller (default false) | |
| timeout | No | drain timeout in seconds (default 60) |