Skip to content

Instantly share code, notes, and snippets.

@agracey
Last active May 28, 2024 14:47
Show Gist options
  • Save agracey/2befd54c2ea5260e3ce5cffc0ef882e6 to your computer and use it in GitHub Desktop.
Save agracey/2befd54c2ea5260e3ce5cffc0ef882e6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: wallboard
namespace: wallboard
spec:
selector:
matchLabels:
name: test-wallboard
template:
metadata:
labels:
name: test-wallboard
spec:
initContainers:
- name: x11
image: registry.opensuse.org/home/atgracey/wallboardos/15.5/x11:notaskbar
imagePullPolicy: Always
restartPolicy: Always
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
containers:
- name: wallboard
env:
- name: URL
value: https://google.com
- name: DISPLAY
value: ':0'
- name: XAUTHORITY
value: /home/user/xauthority/.xauth
image: registry.opensuse.org/home/atgracey/wallboardos/15.5/firefox:latest
imagePullPolicy: Always
securityContext:
runAsUser: 1000
volumeMounts:
- mountPath: /tmp/.X11-unix/
name: xsocket
- mountPath: /home/user/xauthority/
name: xauthority
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