ci: Skip SELinux relabel on start
dustin/airplaypi/pipeline/head Something is wrong with the build of this commit Details

By default, CRI-O assigns a random SELinux category to every pod, and
then must adjust the label of every file and directory in the persistent
volume to match.  For very large volumes like a Buildroot output
directory, this can take quite some time.  Fortunately, if we assign a
static category, we can tell CRI-O to skip the relabel step.
Dustin 2025-08-31 10:55:49 -05:00
parent 1f1a9ed621
commit 6b6fa0f882
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,6 @@
metadata:
annotations:
io.kubernetes.cri-o.TrySkipVolumeSELinuxLabel: 'true'
spec: spec:
containers: containers:
- name: build - name: build
@ -13,6 +16,8 @@ spec:
subPath: ssh_known_hosts subPath: ssh_known_hosts
securityContext: securityContext:
fsGroupChangePolicy: OnRootMismatch fsGroupChangePolicy: OnRootMismatch
seLinuxOptions:
level: s0:c596,c675
volumes: volumes:
- name: ssh-known-hosts - name: ssh-known-hosts
configMap: configMap: