New
- The cluster now records the version of hetzner-k3s that last created or upgraded it, in a
hetzner-k3sConfigMap inkube-system(data.version).createwrites it as soon as the API server answers, before any addon is applied, andupgradewrites it before applying the upgrade plans. The recorded version only moves forward (#817). - Before
createorupgradechanges anything, they read that ConfigMap and stop when it records a newer version than the one running, because an older release may undo or break what a newer one set up. The error names the version to install. A cluster without the ConfigMap, and a new cluster with no master servers yet, are not checked (#817). - When an existing cluster cannot be reached (API server down, or no kubeconfig at
kubeconfig_path),createandupgradeexplain why the check exists and ask whether to continue without it. The read is a single request that gives up after 15 seconds (#817). - New
--skip-version-check-if-unreachableflag oncreateandupgrade: continues without asking when the version cannot be read.--forcedoes the same. Neither flag gets past a newer recorded version (#817).
Fixes
upgraderewrote every line of the configuration file containingk3s_version:, comments and nested keys such asnew_k3s_version:included. It now rewrites only the top-levelk3s_versionkey (#817).
Upgrading
No configuration change is required, and nothing on the nodes changes: the install scripts and addon manifests are the same as in v2.19.0. The bundled addon versions (Cloud Controller Manager, CSI driver, Cluster Autoscaler, System Upgrade Controller) are unchanged.
- The first
createorupgradewith this release creates the ConfigMap. Existing clusters have none, so nothing is blocked. Releases before v2.20.0 do not read it. - Without a terminal,
createandupgradenow stop when the cluster exists but cannot be reached. That includes a pipeline that runscreateagainst an existing cluster without keeping the kubeconfig between runs: pass--skip-version-check-if-unreachable.--forceworks too, but oncreateit also applies node pool reconciliation without asking whenreconcile_node_poolsis enabled. - To run an older release against a cluster on purpose, edit or delete the ConfigMap first:
kubectl -n kube-system edit configmap hetzner-k3s. deleteandrundo not read the cluster API, so they are not checked.- The upgrade notes and the create guide cover the details.
If hetzner-k3s is useful to you or your company, please consider sponsoring its development.
Sponsorship helps ensure continued maintenance and new features. Thank you to our current sponsors! 🙏