drain_node
Drain a Kubernetes node by cordoning it and evicting non-daemonset pods, with dry-run simulation, force deletion, and multi-cluster support.
Instructions
Cordons the node and evicts/deletes non-daemonset pods.
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": {
"nodeName": "<nodeName>"
},
"name": "drain_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force deletion of pods | |
| dryRun | No | If true, simulates the action | |
| cluster | No | Target cluster name (default: 'default') | |
| nodeName | Yes | Name of the node to drain |