k8s_drain_node
Evict all pods from a Kubernetes node to prepare it for maintenance. Automatically cordons the node, with options to skip DaemonSet pods or force evict unmanaged pods.
Instructions
Drain a node by evicting all pods, preparing it for maintenance. Automatically cordons the node first. Set ignore_daemonsets=True to skip DaemonSet pods. Set force=True to evict pods not managed by a controller.
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": {
"context": "<context>",
"node_name": "<node_name>"
},
"name": "k8s_drain_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| context | Yes | ||
| timeout | No | ||
| node_name | Yes | ||
| delete_local_data | No | ||
| ignore_daemonsets | No |