-
Notifications
You must be signed in to change notification settings - Fork 372
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
k0s uninstall still required #2399
Comments
So essentially you'd expect that |
or |
The difference is that get.k0s.sh is not the actual installer, it's just a download script for the current arch+os binary that you might use as an installer or for runring k0s without installing. Maybe it shouldn't put it into /usr/local/bin in the first place. I would actually prefer removing |
sounds like we dont get this done this time either. this is the third issue on the subject. it always sidetracks. |
like this is obvious to the almighty k0s team that "its just a single binary" but when a user runs a script snippet which does something it is not obvious what gets written and where. providing please don't sidetrack this issue again in diskutering klubben, but actually implement this promise. |
Maybe workaround is something like |
Logically I made a PR for the get-script that creates an uninstaller that looks like: #!/bin/sh
rm -f /usr/local/bin/k0s $0 The installer then says: $ cat get.k0s.sh | sudo sh
Downloading k0s from URL: https://github.com/k0sproject/k0s/releases/download/v1.25.3+k0s.0/k0s-v1.25.3+k0s.0-amd64
k0s is now executable in /usr/local/bin
- to remove k0s, run /usr/local/bin/remove-k0s.sh Feels a bit silly as it could just say Maybe it should check if k0s is running and refuse to remove in that case. It's already starting to make sense! :) |
This is a bit repetitive, but it still remains valid: The get.k0s.sh script is just a glorious $ curl -sSLf https://get.k0s.sh | wc
57 121 1140
$ curl -sSLf https://get.k3s.io | wc
930 3269 27922 What would be the user expectation around a remove script? Probably "wipe k0s from the machine, no traces left behind". Well, that is not so easy, since this would require some sort of integration between I'm kinda opposed to add it in the currently proposed way. It will just add up to the whole confusion. Moreover, I don't think this discussion sidetracked. Thing is that uninstallation just doesn't fit into the scope of get.k0s.sh, since it doesn't do the install in the first place. It just "get"s the binary. If folks are concerned about the things that get.k0s.sh does, I'd probably just give the advice to use |
Recently I have been in touch with people from confidential containers and having |
Maybe it shouldn't install it into /usr/local/bin because that is kind of "installing". It could output the payload to stdout for redirecting: $ curl get.k0s.sh | sh
Error: stdout is a terminal, you don't want to see all that garbage on screen. Use redirect / pipe.
$ curl get.k0s.sh | sh > k0s
Downloading from foofoo.....
$ chmod +x k0s
$ ./k0s version
v1234567.8.9+k0s.0 It could write it to a specified path: $ curl get.k0s.sh | sh -- -o /tmp/k0s
Downloading from foofoo to /tmp/k0s .....
Checking /tmp/k0s ....
Success, k0s is now executable in /tmp/k0s It could copy the bin to default location and run $ curl get.k0s.sh | sh -- install controller --single --data-dir /tmp --enable-cloud-provider
Downloading from foofoo to /usr/local/bin/k0s .....
Checking /usr/local/bin/k0s ....
Success, k0s is now executable in /usr/local/bin/k0s
Running k0s install controller --single --data-dir /tmp --enable-cloud-provider ...
$ curl get.k0s.sh | sh -- worker # invent some clever way to pass token
...
Running k0s worker ...
|
I'd propose something like |
if this will be implemented one day - please don´t forget |
Created separate issue for that, see #2852 . |
any progress vor cleanup? BTW will the systemd unit removed as well? And very often I get a message that k0s reset can not talk to the socket |
@hwinkel would you mind filing a separate issue for this? |
Is your feature request related to a problem? Please describe.
curl -sfL https://get.k3s.io | sh -
adds
k3s-uninstall.sh
curl -sSLf https://get.k0s.sh | sh
only "adds"
k0s reset
which doesn't remove the binary.As a user I can not know what else is left behind.
Describe the solution you would like
Please provide
k0s uninstall
for a complete uninstallDescribe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: