cordon_node
Cordon one Kubernetes node: set spec.unschedulable=true so no new pods schedule onto it. Running pods are NOT evicted - they keep running until removed (delete_pod) or drained by an operator, after which their controllers recreate them on other nodes. This is the standard first step of node consolidation: cordon the node, remove its remaining pods, and let the cluster-autoscaler or an operator reap the empty node. Note delete_pod issues a direct delete, not an Eviction-API evict, so PodDisruptionBudgets are NOT consulted - check disruption budgets and replica counts before removing pods from the node. node_name must match the Kubernetes node name exactly (call get_nodes to list them); an unknown node is refused without changing anything. Fully reversible with uncordon_node. This is the only Node mutation available to the AI assistant - patch_resource still refuses the Node kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, preview the change without executing it. | |
| node_name | Yes | Exact name of the Kubernetes node to cordon (from get_nodes). | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. |