Drain node
k8s_drain_nodeEvict all pods from a Kubernetes node to prepare it for maintenance or decommissioning, with optional force and grace-period controls.
Instructions
Safely evict all pods from a node (drain).
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": {
"node_name": "<node_name>"
},
"name": "k8s_drain_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| confirm | No | Explicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt. | |
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| node_name | Yes | ||
| grace_period_seconds | No |