Skip to content

[Feature Request] [cinder-csi-plugin] support for SeLinuxMount #3239

Description

@BdeHeij

/kind feature

What happened:
seLinuxMount is a property of CSIDriver added in Kubernetes 1.25. It declares the driver's ability to mount its volumes separately with different SELinux labels. The reason this matters is because workloads storing many small files on PVs will suffer from very slow startup otherwise.

What you expected to happen:
The CSIDriver to support passing the -o context= option to mount and declare seLinuxMount: true. This would prevent needless relabeling.

How to reproduce it:
Create a PVC with a huge amount of files. When restarting the Pod the container will be in ContainerCreating for quite some time, depending on underlying storage IO

Anything else we need to know?:
For relevant context see:

Environment:

  • openstack-cloud-controller-manager(or other related binary) version:
  • OpenStack version:
  • Others:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions