diff --git a/packages/system/kubevirt/templates/disable-selinux-workaround.yaml b/packages/system/kubevirt/templates/disable-selinux-workaround.yaml new file mode 100644 index 00000000..7a7e551a --- /dev/null +++ b/packages/system/kubevirt/templates/disable-selinux-workaround.yaml @@ -0,0 +1,41 @@ +# See: +# - https://github.com/siderolabs/talos/issues/10083 +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: disable-selinux + namespace: cozy-kubevirt + labels: + app: disable-selinux +spec: + selector: + matchLabels: + app: disable-selinux + template: + metadata: + labels: + app: disable-selinux + spec: + containers: + - command: + - sh + - -exc + - test -f /sys/fs/selinux/enforce && mount -t tmpfs tmpfs /host/sys/fs/selinux; sleep infinity + image: docker.io/library/alpine + name: mount + securityContext: + privileged: true + volumeMounts: + - mountPath: /host + mountPropagation: Bidirectional + name: host-root + hostIPC: true + hostNetwork: true + hostPID: true + tolerations: + - operator: Exists + volumes: + - hostPath: + path: / + name: host-root