New
create,delete,upgradeandrunnow check for a newer hetzner-k3s release. They ask GitHub for the latest release before reading the configuration, and in a terminal they askContinue 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-checkorHETZNER_K3S_SKIP_UPDATE_CHECK=trueskips the request;--forcedoes not (#818).- Secrets can now go in a
.envfile in the same directory as the configuration file:HCLOUD_TOKEN,ROBOT_USER,ROBOT_PASSWORD,TAILSCALE_AUTH_KEYand the fiveETCD_S3_*keys. Each secret is looked up on its own, the configuration file first, then the environment variable, then.env, exceptHCLOUD_TOKEN, where the variable keeps winning overhetzner_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.envthat 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.3tov2.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_passwordortailscale.auth_keyin the configuration file no longer hidesROBOT_USER,ROBOT_PASSWORDorTAILSCALE_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
createrolls the CSI controller pod and restarts thehcloud-csi-nodeDaemonSet 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.comper command. Pipelines are not stopped by it, but they can pass--skip-update-checkto avoid the request. - A configuration without a
.envnext 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! 🙏