cnrancher / autok3s

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

Help: selinux error during offline installation of k3s using autok3s in CentOS Linux release 7.9.2009 (Core) #597

Closed jinjianming closed 1 month ago

jinjianming commented 1 year ago
[ERROR]  Failed to find the k3s-selinux policy, please install:
    yum install -y container-selinux
    yum install -y https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/

time="2023-05-11T20:10:16+08:00" level=error msg="Process exited with status 1: [ERROR]  Failed to find the k3s-selinux policy, please install:\n    yum install -y container-selinux\n    yum install -y https://rpm.rancher.io/k3s/stable/common/centos/7/noarch/\n\n"

Is installing k3s selinux mandatory? It is not required in Ubuntu 18.04, and under what circumstances will k3s selinux be installed

orangedeng commented 1 year ago

You can see this docs: https://docs.k3s.io/advanced#selinux-support

JacieChao commented 7 months ago

Will support settings for environment variables