Skip to content
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

Allow to support Velad installation without sudo mode #155

Open
quanghungb opened this issue Jul 31, 2023 · 5 comments
Open

Allow to support Velad installation without sudo mode #155

quanghungb opened this issue Jul 31, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@quanghungb
Copy link

In the installation script of velad, it's possible to change the binary directory and not to use the sudo for the velad binary here:

: ${VELAD_INSTALL_DIR:="/usr/local/bin"}
and here
: ${USE_SUDO:="false"}

This is a very useful option for the environments where users don't have the right to run sudo.

But thevelad install fails eventually because it could not setup k3s due to this error

Error: Fail to set up cluster: fail to setup k3s: Fail to prepare k3s binary: open /usr/local/bin/k3s: permission denied

It would be nice to apply such kind of option for the velad install.
So we could install and run velad without using the sudo and from a specific folder of our choice in an restricted environment (without sudo or any admin privileges).

Additional info

  • Velad version
velad version
Core Version: v1.9.4-patch.1
VelaD Version: v1.9.4-patch.1
  • OS version
cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
@chivalryq
Copy link
Member

First we should check if k3s support to install as a unprivileged user.

@chivalryq chivalryq added the help wanted Extra attention is needed label Jul 31, 2023
@chivalryq
Copy link
Member

This is a legacy script and the newest one is in https://github.com/kubevela/kubevela.io.

@quanghungb
Copy link
Author

First we should check if k3s support to install as a unprivileged user.

it seems to be possible: k3s-io/k3s#38

@chivalryq
Copy link
Member

Then this will be possible, but still I have to tag it with help wanted. Let's see if someone would like to contribute to this.

1 similar comment
@chivalryq
Copy link
Member

Then this will be possible, but still I have to tag it with help wanted. Let's see if someone would like to contribute to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants