Skip to content

Commit

Permalink
add: disable-selinux workaround
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
  • Loading branch information
kvaps committed Jan 3, 2025
1 parent c6edf6c commit 087e57d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/system/kubevirt/templates/disable-selinux-workaround.yaml
Original file line number Diff line number Diff line change
@@ -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 /host/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

0 comments on commit 087e57d

Please sign in to comment.