github vitobotta/hetzner-k3s v2.21.0

one hour ago

New

  • create, delete, upgrade and run now check for a newer hetzner-k3s release. They ask GitHub for the latest release before reading the configuration, and in a terminal they ask Continue anyway with <version>? [y/N], so pressing Enter stops the command before anything has changed. Without a terminal (CI) the command prints the notice and continues. If GitHub does not answer within 5 seconds or rate-limits the request, the command prints one line and continues. --skip-update-check or HETZNER_K3S_SKIP_UPDATE_CHECK=true skips the request; --force does not (#818).
  • Secrets can now go in a .env file in the same directory as the configuration file: HCLOUD_TOKEN, ROBOT_USER, ROBOT_PASSWORD, TAILSCALE_AUTH_KEY and the five ETCD_S3_* keys. Each secret is looked up on its own, the configuration file first, then the environment variable, then .env, except HCLOUD_TOKEN, where the variable keeps winning over hetzner_token. Other keys in the file are ignored, and the values are never exported to the environment. Each command prints the names of the keys it read (never the values), names malformed lines by number, warns if other users on the machine can read the file, and prints one line for any key in .env that the configuration file or an exported variable overrides, so a token still exported for another project does not go unnoticed (#818).

Improvements

  • The default Hetzner CSI driver moves from v2.24.3 to v2.25.0. The upstream manifest differs only in the image, and the one new feature, disabling the dm-crypt workqueues for encrypted volumes, is opt-in through two new keys in the encryption secret (#818).
  • An explicit blank robot_user, robot_password or tailscale.auth_key in the configuration file no longer hides ROBOT_USER, ROBOT_PASSWORD or TAILSCALE_AUTH_KEY. A blank key used to win over the variable and then fail validation; these keys now fall through to the variable and then to .env (#818).

Upgrading

No configuration change is required.

  • The next create rolls the CSI controller pod and restarts the hcloud-csi-node DaemonSet one node at a time. Mounted volumes keep working through the restart. The other bundled addons (Cloud Controller Manager, Cluster Autoscaler, System Upgrade Controller) are unchanged.
  • The update check makes one unauthenticated request to api.github.com per command. Pipelines are not stopped by it, but they can pass --skip-update-check to avoid the request.
  • A configuration without a .env next to it resolves every secret to the same value as before.
  • The upgrade notes, Secrets in a .env file and Update check 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.