node_management
Perform node management in Kubernetes: cordon to prevent scheduling, drain to evict pods, uncordon to resume.
Instructions
Manage Kubernetes nodes with cordon, drain, and uncordon operations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Node operation to perform | |
| nodeName | No | Name of the node to operate on (required for cordon, drain, uncordon) | |
| force | No | Force the operation even if there are pods not managed by a ReplicationController, ReplicaSet, Job, DaemonSet or StatefulSet (for drain operation) | |
| gracePeriod | No | Period of time in seconds given to each pod to terminate gracefully (for drain operation). If set to -1, uses the kubectl default grace period. | |
| deleteLocalData | No | Delete local data even if emptyDir volumes are used (for drain operation) | |
| ignoreDaemonsets | No | Ignore DaemonSet-managed pods (for drain operation) | |
| timeout | No | The length of time to wait before giving up (for drain operation, e.g., '5m', '1h') | 0 |
| dryRun | No | Show what would be done without actually doing it (for drain operation) | |
| confirmDrain | No | Explicit confirmation to drain the node (required for drain operation) |