github vitobotta/hetzner-k3s v2.20.0

one hour ago

New

  • The cluster now records the version of hetzner-k3s that last created or upgraded it, in a hetzner-k3s ConfigMap in kube-system (data.version). create writes it as soon as the API server answers, before any addon is applied, and upgrade writes it before applying the upgrade plans. The recorded version only moves forward (#817).
  • Before create or upgrade changes 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), create and upgrade explain 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-unreachable flag on create and upgrade: continues without asking when the version cannot be read. --force does the same. Neither flag gets past a newer recorded version (#817).

Fixes

  • upgrade rewrote every line of the configuration file containing k3s_version: , comments and nested keys such as new_k3s_version: included. It now rewrites only the top-level k3s_version key (#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 create or upgrade with 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, create and upgrade now stop when the cluster exists but cannot be reached. That includes a pipeline that runs create against an existing cluster without keeping the kubeconfig between runs: pass --skip-version-check-if-unreachable. --force works too, but on create it also applies node pool reconciliation without asking when reconcile_node_pools is 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.
  • delete and run do 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! 🙏

Don't miss a new hetzner-k3s release

NewReleases is sending notifications on new releases.