-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allows specifying k3s version #1436
Conversation
Signed-off-by: Gilberto Mautner <[email protected]>
Signed-off-by: Gilberto Mautner <[email protected]>
Signed-off-by: Gilberto Mautner <[email protected]>
By the way, the following scenarios were tested and worked according to expected:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Sorry @gmautner, I had to revert the PR as it did not did not deploy on my test. If you manage to fix it with or without channel and with or without version, please don't hesitate to submit a new one. |
I think this was caused by a network connectivity issue unrelated to my PR. When the server https://update.k3s.io/v1-release/channels is down, the behaviour of the k3s installation script is to return the input channel instead of the release, because I manually tested and was able to reproduce the problem with the following commands:
Turning off the network:
This behaviour has been documented by other users of kube-hetzner, like: So probably it has no relationship to the PR. Could you please test it again? |
@gmautner Thanks for the info. This is a crazy coincidence because I've ever seen this very error before. |
Ok, I see it's a new feature to allow specifying the version. Please let's wait a bit until it's more stable then we can try again. |
Sometimes a cluster operator might prefer to specify the k3s version (e.g.
v1.29.6+k3s2
) instead of the channel (e.g.v1.29
,stable
etc.)Reasons for that could be not wanting the system upgrade controller to run at unpredictable times, or having more fine-grained control over the running version.
This PR introduces a new variable
install_k3s_version
inkube.tf
. If undefined, the present behavior is preserved such that current installations are not affected. However, when defined, this variable takes precedence overinitial_k3s_channel
.The mechanism for upgrades in either case continues to be the system upgrade controller.