Add reset command to uninstall k3s from nodes#437
Add reset command to uninstall k3s from nodes#437Gu1llaum-3 wants to merge 3 commits intoalexellis:masterfrom
Conversation
|
Thank you for your contribution. unfortunately, one or more of your commits are missing the required "Signed-off-by:" statement. Signing off is part of the Developer Certificate of Origin (DCO) which is used by this project. Read the DCO and project contributing guide carefully, and amend your commits using the git CLI. Note that this does not require any cryptography, keys or special steps to be taken. 💡 Shall we fix this?This will only take a few moments. First, clone your fork and checkout this branch using the git CLI. Next, set up your real name and email address:
Finally, run one of these commands to add the "Signed-off-by" line to your commits. If you only have one commit so far then run: Check that the message has been added properly by running "git log". |
bb50656 to
9074da0
Compare
Signed-off-by: Gu1llaum-3 <archambault.guillaume06@gmail.com>
Signed-off-by: Gu1llaum-3 <archambault.guillaume06@gmail.com>
9074da0 to
c634106
Compare
|
Thank you for your contribution. unfortunately, one or more of your commits are missing the required "Signed-off-by:" statement. Signing off is part of the Developer Certificate of Origin (DCO) which is used by this project. Read the DCO and project contributing guide carefully, and amend your commits using the git CLI. Note that this does not require any cryptography, keys or special steps to be taken. 💡 Shall we fix this?This will only take a few moments. First, clone your fork and checkout this branch using the git CLI. Next, set up your real name and email address:
Finally, run one of these commands to add the "Signed-off-by" line to your commits. If you only have one commit so far then run: Check that the message has been added properly by running "git log". |
Add Reset Command to uninstall k3s from nodes
Why do you need this?
This change is needed to provide a convenient way to uninstall k3s from nodes using the same tool that was used to install it. This functionality is useful for testing and maintenance, as it allows users to easily reset their cluster without having to manually connect to each node to perform the uninstallation like k0sctl use.
Description
This PR adds a new
resetcommand to the k3sup tool. Theresetcommand allows users to uninstall k3s from specified nodes. It supports both single node and multiple nodes through a JSON plan file.Features
Usage
For a single node:
k3sup reset --user <username> --ip <host_ip> --ssh-key <path_to_private_key>For a multiple nodes:
k3sup reset --hosts <path_to_hosts.json> --user <username> --ssh-key <path_to_private_key>