Skip to content

Support mounting with SELinux mount options to prevent big volumes from not being able to mount into pods #582

@sharkymcdongles

Description

@sharkymcdongles

TL;DR

If you have a large PVC in k8s/k3s with selinux enabled, the volume won't mount to the pod because on boot containerd tries to assign selinux labels to all files leading to the pod never starting.

Expected behavior

Allow selinux context mounting and change the csidriver spec to announce it as described here:

https://kubernetes.io/blog/2023/04/18/kubernetes-1-27-efficient-selinux-relabeling-beta/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions