-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SELinux] RKE2 provisioning #1362
Comments
I gave this a try building a dev image (TW based) with all latest goodies. I additionally added the kind: Cluster
apiVersion: provisioning.cattle.io/v1
metadata:
name: volcano
namespace: fleet-default
spec:
rkeConfig:
machineGlobalConfig:
selinux: true
debug: true
kubernetesVersion: v1.27.12+rke2r1 I installed the Also note that rke2 ships Elemental installation and provisioning of the rke2 node works fine, however rke2 fails to start as the
This seems to be the same issue reported here: rancher/rke2#1494 |
So maybe I did hit the same error but due to another reason.
But after a reboot (due to our little selinux support config) or after a manual
Node is not ready yet, so there are other issues most likely (with CNI installation?), but etcd is running at least:
The rke2 provisioning plan uses system-agent-installer-rke2, which unpacks a tar. I guess this is where it fails. |
I believe all these are known issues related to rancher/rke2#3888 (comment) , in fact we are installing RKE2 from a tarball. We do not support RPM installation at runtime, as this would imply having a mutable While provisioning we get the error message:
However the policy is already installed and active and rebooting does actually fix the problem. At boot we relabel every RW path in the system and this includes the installation in |
Marking as blocked as currently there is no support for RKE2 when installed directly from the tarball, which is the procedure used within Elemental. In order to support RKE2 we could either build RKE2 images (with preinstalled RKE2) or either add SELinux support for RKE2 installation form a tarball in Rancher provisioning. From the tests I did what's missing are the correct labels under |
=> Create issues upstream for fixing the tarball |
Issue already exists: rancher/rke2-selinux#64 |
Check requirements for successful RKE2 provisioning and operations. Check
rke2-selinux
module for targeted policy is enough.The text was updated successfully, but these errors were encountered: