From 686da2476247a6dbe506c3cf8387518776a2b95d Mon Sep 17 00:00:00 2001 From: bdchatham Date: Thu, 7 May 2026 11:27:00 -0700 Subject: [PATCH 1/2] feat(noderesource): set SELinuxChangePolicy=MountOption on SeiNode pods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tells kubelet/CSI to apply the pod's SELinux context as a per-mount overlay (one mount syscall option) instead of the default behavior of recursively rewriting xattrs on every file in the data PVC. Concrete impact for archive nodes (40 TiB xfs, 8.2M files): - Before: every pod creation triggers a full setxattr walk → ~20 minutes of CreateContainer hang while runc relabels each file to match the pod's randomized MCS pair. - After: the kernel applies the context at mount time, regardless of filesystem size → milliseconds. Subsequent pod recreations (different MCS) just remount with a different context= option, same instant cost. Mechanism: SELinux mount option `context=