upgrade_cluster
Upgrade the Kubernetes version of an Ankra-provisioned self-managed cluster to target_version (e.g. 'v1.31.4' or 'v1.31.4+k3s1'; the version must be in the platform catalogue). Runs a rolling upgrade as a tracked operation: nodes are drained and upgraded one at a time, control plane first. Downgrades and minor-version skips are refused, and the cluster must be online with no operations in progress. Not reversible - Kubernetes cannot be downgraded through this API.
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, e.g. 'v1.31.4' or 'v1.31.4+k3s1'. |