kubevela / velad

Lightweight KubeVela that runs as Daemon in single node with high availability.
Apache License 2.0
67 stars 16 forks source link

Allow to support Velad installation without sudo mode #155

Open quanghungb opened 1 year ago

quanghungb commented 1 year ago

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: https://github.com/kubevela/velad/blob/9849282a31c5b46fec6142f40a3835209352ab0d/hack/install-velad.sh#L6 and here https://github.com/kubevela/velad/blob/9849282a31c5b46fec6142f40a3835209352ab0d/hack/install-velad.sh#L9

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

chivalryq commented 1 year ago

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

chivalryq commented 1 year ago

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

quanghungb commented 1 year ago

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

it seems to be possible: https://github.com/k3s-io/k3s/issues/38

chivalryq commented 1 year ago

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.

chivalryq commented 1 year ago

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.