Skip to content

Instantly share code, notes, and snippets.

@mak3r
Last active June 6, 2024 15:20
Show Gist options
  • Save mak3r/e36da7542ec924e35c27ab071e5d43bd to your computer and use it in GitHub Desktop.
Save mak3r/e36da7542ec924e35c27ab071e5d43bd to your computer and use it in GitHub Desktop.
configuration to run a gui container using startx
apiVersion: v1
kind: Namespace
metadata:
name: kiosk
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kiosk
namespace: kiosk
spec:
selector:
matchLabels:
name: startx-kiosk
template:
metadata:
labels:
name: startx-kiosk
spec:
containers:
- name: startx
image: docker.io/mak3r/nowm:0.0.13
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
readOnlyRootFilesystem: false
volumeMounts:
- mountPath: /tmp/.X11-unix/
name: xsocket
- mountPath: /home/user/xauthority/
name: xauthority
- mountPath: /run/udev/data/
name: udev-data
env:
- name: DISPLAY
value: ':0'
- name: XAUTHORITY
value: /home/user/xauthority/.xauth
dnsPolicy: ClusterFirst
terminationGracePeriodSeconds: 5
volumes:
- name: xauthority
emptyDir: {}
- name: xsocket
emptyDir: {}
- name: udev-data
hostPath:
path: /run/udev/data/
type: Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment