Skip to content

Instantly share code, notes, and snippets.

@agracey
Last active August 11, 2025 13:27
Show Gist options
  • Save agracey/381850cece3ffdca0e742e3e2366639b to your computer and use it in GitHub Desktop.
Save agracey/381850cece3ffdca0e742e3e2366639b to your computer and use it in GitHub Desktop.

To run:

kubectl apply -f aic-xorg-cm.yaml
helm template kiosk oci://registry.suse.com/suse/kiosk/kiosk-chart --version 1.0.1 -f values.yaml| kubectl patch --local=true -f - -oyaml --patch-file patch2.yaml --dry-run=client --type JSON | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
name: aic-xorg
data:
20-aic.conf: |
Section "OutputClass"
Identifier "ArtInChip"
MatchDriver "aic-ud"
Driver "modesetting"
Option "AccelMethod" "none"
Option "PageFlip" "off"
Option "SWCursor" "on"
Option "ShadowFB" "true"
EndSection
# Add xorg conf from configMap
- op: add
path: /spec/template/spec/volumes/-
value:
name: aic-xorg
configMap:
defaultMode: 420
name: aic-xorg
optional: true
- op: add
path: /spec/template/spec/initContainers/0/volumeMounts/-
value:
mountPath: /etc/X11/xorg.conf.d/20-aic.conf
name: aic-xorg
subPath: 20-aic.conf
# Passthrough volume mounts
- op: add
path: /spec/template/spec/volumes/-
value:
name: run
hostPath:
path: /run/
type: Directory
- op: add
path: /spec/template/spec/volumes/-
value:
name: sys
hostPath:
path: /sys/
type: Directory
- op: add
path: /spec/template/spec/volumes/-
value:
name: dev
hostPath:
path: /dev/
type: Directory
# Add init Container with user space binary
- op: add
path: /spec/template/spec/initContainers/-
value:
name: aic-render
env:
- name: DISPLAY
value: :0
- name: XAUTHORITY
value: /root/xauthority/.xauth
image: registry.opensuse.org/home/atgracey/wallboardos/15.6/testing:latest
imagePullPolicy: Always
restartPolicy: Always
securityContext:
privileged: true
readOnlyRootFilesystem: false
volumeMounts:
- mountPath: /run/
name: run
- mountPath: /sys/
name: sys
- mountPath: /dev/
name: dev
- mountPath: /tmp/.X11-unix/
name: xsocket
- mountPath: /root/xauthority/
name: xauthority
- mountPath: /run/udev/data/
name: udev-data
X11:
image:
repository: registry.opensuse.org/home/atgracey/wallboardos/15.6/x11
pullPolicy: Always
tag: noconf
workload:
url: "https://omnicell.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment