-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Add reset command to uninstall k3s from nodes #437
base: master
Are you sure you want to change the base?
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 <[email protected]>
Signed-off-by: Gu1llaum-3 <[email protected]>
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
reset
command to the k3sup tool. Thereset
command 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>