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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| context | Yes | ||
| timeout | No | ||
| node_name | Yes | ||
| delete_local_data | No | ||
| ignore_daemonsets | No |