cnrancher / autok3s

Run K3s Everywhere
https://www.suse.com
Apache License 2.0
753 stars 76 forks source link

[help] cannot create node on Alpine linux 3.17 #602

Closed jack-liew closed 1 year ago

jack-liew commented 1 year ago

cannot create node on Alpine linux 3.17

It can create cluster on debian or ubuntu, but alpine.

Expected behavior alpine has no sudo, and apk can not found sudo.

Environments

orangedeng commented 1 year ago

Refer to https://www.suse.com/suse-k3s/support-matrix/all-supported-versions/k3s-v1-26/

~It is a k3s support matrix problem. Although from k3s docs says that K3s is expected to work on most modern Linux systems., it also has the support matrix and the alpine isn't in that list. So the autok3s is also not expected to install k3s in alpine linux.~

~We will look into the possibility to install k3s in alpine but I don't think it is a bug of autok3s.~

orangedeng commented 1 year ago

I tried to use curl -sfL https://get.k3s.io | sh - and succeed to install k3s in alpine 3.17.2. We will improve the install script in autok3s.

gedw99 commented 1 year ago

thanks @orangedeng

jack-liew commented 1 year ago

I tried to use curl -sfL https://get.k3s.io | sh - and succeed to install k3s in alpine 3.17.2. We will improve the install script in autok3s.

I visited https://docs.rancher.cn/docs/k3s/advanced/_index, it has how to setup k3s on alpine linux, I thought it‘s about create cluster on alpine by autok3s. maybe should modify the doc?

Thank orangedeng

orangedeng commented 1 year ago

I visited https://docs.rancher.cn/docs/k3s/advanced/_index, it has how to setup k3s on alpine linux, I thought it‘s about create cluster on alpine by autok3s. maybe should modify the doc?

This issue is the autok3s problem. The install script from autok3s is using sudo which the alpine doesn't have. Both the support matrix and community docs are fine.

The support matrix is more about the commercial support. It doesn't affect that K3s is expected to work on most modern Linux systems.

I will fix it in v0.9.0

orangedeng commented 1 year ago

Resolved in v0.9.0-rc1, already tested autok3s install k3s on Alpine linux with 1 master and 1 worker node via airgap install.