upgrade_preflight
Check whether an Ankra-provisioned self-managed cluster is ready for a Kubernetes version hop to target_version, without changing anything. Answers verdict ready or blocked and one finding per check, each pass, warn, block or skipped with a sentence and its evidence: hop_plan (versions per node, which nodes upgrade or are skipped, the suggested one-minor hops for a target further away; blocks a minor skip, a downgrade or a version outside the catalogue), operations (running operations, reconciling nodes, an operations block), pod_disruption_budgets (a budget that allows no disruption parks the drain on the node named), cloudnative_pg (stopDelay longer than the 300 s drain timeout, single-instance clusters), control_plane_memory (MemAvailable now and over 24 h from the cluster's metrics source), restore_points (newest cluster-state snapshot, backup vault, unprotected stateful stacks), control_plane_reachability (recent SSH failures) and k3s_address_pin. A warning or a skipped check whose evidence could not be read means NOT CHECKED, never passed. upgrade_cluster runs the same preflight first and refuses on a block. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | No | UUID of the target cluster. Optional when a cluster is selected. | |
| cluster_name | No | Exact name of the target cluster. Optional when a cluster is selected. | |
| target_version | Yes | Target Kubernetes version to check, e.g. 'v1.31.4' or 'v1.31.4+k3s1'. |