k0sctl
k0sctl copied to clipboard
Specify install location for k0s
The machine I am trying to install k0s on has a read-only /usr partition This causes the install command for k0s to fail
executing `sudo -s -- install -m 0750 -o root -g root \"/tmp/tmp.lNe2DW8TD2\" \"/usr/local/bin/k0s\
(stderr) install: cannot create regular file '/usr/local/bin/k0s': Read-only file system
https://docs.k0sproject.io/v1.28.2+k0s.0/troubleshooting/#k0s-not-working-with-read-only-usr does not seem to address what to do if you can not install the k0s binary in /usr.
k0sctl should handle that already. Which OS are you using? I am using Flatcar Linux, also comes with readonly /usr.
(I am also using a profile and k0s ends up in /opt)
Flatcar is the only one that has a custom K0sBinaryPath() currently.
It would be possible to detect when /usr is readonly and then use /opt as fallback. I'd rather not make it configurable because I have a hunch that it can open a new can of worms.
But knowing which OS you're running on @khumps would be interesting.
But knowing which OS you're running on @khumps would be interesting.
Sorry didn't get back to this because we ended up having to use something else
We are running on a custom OS for a 3rd-party networking appliance (https://zpesystems.com/products/nodegrid-services-router/)