This message was deleted.
# rke2
a
This message was deleted.
g
Hello, Can you check this, You need to install same RPMs https://gist.github.com/zackbradys/8d512ac9e36cf47ed662164cb6d5fcee
After İnstallation, yum install -y rke2-common-1.30.0.rke2r1-0.el9.x86_64.rpm rke2-selinux-0.18-1.el9.noarch.rpm
k
This is installed: rke2-selinux-0.18-1.el9.noarch.rpm This is not rke2-common-1.30.0.rke2r1-0.el9.x86_64.rpm. I thought the issue might related to pass the config value at the wrong place in the wrong manner. My three nodes have been installed via:
Copy code
HTTP_PROXY="xxxx" HTTPS_PROXY="xxx" NO_PROXY="localhost,127.0.0.1,localaddress,127.0.0.0/8,10.0.0.0/8,,xxxx" RKE2_SELINUX="true" curl -fL <https://rancher/system-agent-install.sh> | sudo HTTP_PROXY="xxxx:3128" HTTPS_PROXY="xxx:3128" NO_PROXY="localhost,127.0.0.1,localaddress,127.0.0.0/8,10.0.0.0/8,xxx" RKE2_SELINUX="true" sh -s - --server <https://rancher> --label '<http://cattle.io/os=linux|cattle.io/os=linux>' --token token --etcd --controlplane --worker
The RKE2_SELINUX is the only one used to define selinux support should be enabled.
It looks, like uninstalling and then reinstalling the rke2-selinux package solved the issue. Only running restorecon was, however, not sufficient or I missed something.
Also it was difficult to find out, that the "selinux": true probably has to be under the machineGlobalConfig section in a rancher managed cluster.