-
Notifications
You must be signed in to change notification settings - Fork 813
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
Add support for SELinux mount options #2228
Comments
/type feature Hi, thanks for this feature request. We haven't explicitly tested it, but as a manual workaround you likely could use the feature if you meet all the other requirements and manually add I'll keep this open as a feature request to officially test/support this - I can't provide a specific ETA at this time but the team will provide any updates on this issue. |
Hey @ConnorJC3. I'm one of @gbucknel's colleagues. I had a go at your suggestion of updating the object ( |
In that case, there are probably some changes we have to make for compatibility - it is on our backlog to test this feature and indentify/remediate any issues with selinux relabeling, but as I said above I don't have a firm ETA at this time, any updates will be posted here on the issue. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Is your feature request related to a problem? Please describe.
I'd like to run Jenkins on Bottlerocket. Jenkins uses an EBS volume and has millions of small files.
It runs as a stateful set. On Bottlerocket (which is selinux enabled ) when the pod moves to a new node it needs to relabel every single file and so the pod can stay down for half an hour while the relabelling runs.
This selinux relabelling feature out last year seems to address this :
https://kubernetes.io/blog/2023/04/18/kubernetes-1-27-efficient-selinux-relabeling-beta/
The crux of it is that node will mount the volume with the same set of configured selinux labels and will then not need to relabel anything, and no downtime will happen when moving to a new node.
From the blog post, 5 different conditions need to be met for this to work and the 5th is :
The volume plugin or the CSI driver responsible for the volume supports mounting with SELinux mount options.
I understand this isn't the case, given this closed issue -> #1544 . Am opening this issue to start the conversation again.
Describe the solution you'd like in detail
Please add selinux support to this driver.
Describe alternatives you've considered
I currently run Jenkins on Amazon Linux 2023 which has selinux disabled . Would be keen to get it to run on bottlerocket for uniformity (and the other advantages of bottlerocket).
The text was updated successfully, but these errors were encountered: