Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tiraboschi/8f6d355d0cbdb7243e9921e60347fd4f to your computer and use it in GitHub Desktop.
Save tiraboschi/8f6d355d0cbdb7243e9921e60347fd4f to your computer and use it in GitHub Desktop.
---
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: 10-enable-container-use-devices-sebool
spec:
config:
ignition:
version: 2.2.0
systemd:
units:
- name: setsebool-container-use-devices.service
enabled: true
contents: |
[Unit]
Before=kubelet.service
[Service]
Type=oneshot
ExecStart=setsebool container_use_devices true
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
@eslutsky
Copy link

on SNO deployments it works only with machineconfiguration.openshift.io/role: master

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