Dear Team,
I copied and pasted the installation command from the website:
curl -sfL https://get.k3s.io | sh -
Installation fails as follows:
[INFO] Finding release for channel stable
[INFO] Using v1.17.4+k3s1 as release
[INFO] Downloading hash https://github.com/rancher/k3s/releases/download/v1.17.4+k3s1/sha256sum-amd64.txt
[INFO] Skipping binary downloaded, installed k3s matches hash
[ERROR] Failed to find the k3s-selinux policy, please install:
yum install -y container-selinux selinux-policy-base
rpm -i https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm
I did the what is instructed here, installed the package successfully. However, the issue is still.
OS Version: CentOS 8
Thanks in advance.
the same exact error after you've installed those yum packages?
What was the output of the yum and rpm commands? Perhaps they failed?
Are you able to try CentOS 7?
I hit this same thing today. CentOS Linux release 7.7.1908 (Core) and k3s version v1.17.2+k3s1 (cdab19b0).
I installed suggested packages: yum install -y container-selinux selinux-policy-base
Did not help.
EDIT: Oh boy, didn't realize I had to install the k3s-selinux-0.1.1-rc1.el7.noarch.rpm package as well :D I thought it was an option to the yum install.. 馃う Yeah, it works now..
k3s-selinux-0.1.1-rc1.el7.noarch.rpm package is required. Looks like installing this requirement resolved the issue. Any questions/concerns feel free to mention the issue and @ me and we may reopen the issue if necessary. Thank you
Can the warning message be made a bit clearer? Took me long enough to figure out why it wasn't working
Most helpful comment
I hit this same thing today.
CentOS Linux release 7.7.1908 (Core)andk3s version v1.17.2+k3s1 (cdab19b0).I installed suggested packages:
yum install -y container-selinux selinux-policy-baseDid not help.
EDIT: Oh boy, didn't realize I had to install the
k3s-selinux-0.1.1-rc1.el7.noarch.rpmpackage as well :D I thought it was an option to the yum install.. 馃う Yeah, it works now..