Created
March 17, 2023 08:50
-
-
Save tiraboschi/8f6d355d0cbdb7243e9921e60347fd4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on SNO deployments it works only with
machineconfiguration.openshift.io/role: master