-
Notifications
You must be signed in to change notification settings - Fork 50
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
K3s Cluster Node(s) Upgrade #132
Comments
Hi @nicklausbrown, I've just checked (and tested) and here the upgrade process
I therefore confirm that this module follows the official upgrade procedure by using the official installation script. However, a word about the upgrade procedure wouldn't go amiss, thanks for bringing it up. EDIT: replace |
@xunleii During the upgrade process, I noticed that all the nodes get upgraded simultaneously. This leads to a situation where all the master nodes are unavailable for a certain duration. Is there an option to perform the upgrades one after another instead? |
Yep, thank you for that. Indeed, there is no mechanism to have a non-parallel update. I did it because there is little downtime (in most cases) and I didn't want to make this module too complicated. However, if it's something really blocking, I can make the first server serve as a dependency for the others. With this, there will always be at least one server available to communicate with, but I'll also have to find out if there's a risk of split brain N-1 servers updating at the same time. |
Not exactly a blocker but it breaks the HA guarantees in case of an HA setup. An option to have an one node at a time upgrade would be great. |
@xunleii What are your thoughts on introducing a feature flag for sequential execution that would, when enabled, enforce a sequential creation of servers and agents by adding a depends_on attribute to the preceding resource when the index is greater than 0? When this flag is disabled, which would be the default setting, the current behavior would be maintained. |
I agree with you, it can be very useful. |
This issue has been automatically marked as stale because it has not had recent activity. If the issue still persists, please leave a comment and it will be reopened. |
This issue has been automatically marked as stale because it has not had recent activity. If the issue still persists, please leave a comment and it will be reopened. |
Hello @xunleii,
I did not see a discussions area for the repo, so I will ask my question here as it seems undocumented. Can this terraform module appropriately upgrade a k3s cluster similar to what is described in the "manual" part of the documentation here. If not is there another recommended way to handle version upgrades gracefully?
Otherwise, thanks for open sourcing this project. I haven't finished implementing it yet, but it makes operations a lot easier.
The text was updated successfully, but these errors were encountered: