Skip to content

Instantly share code, notes, and snippets.

@rbo
Created March 17, 2022 14:21
Show Gist options
  • Save rbo/45fbe083a7879f04c41aad599b6d5b86 to your computer and use it in GitHub Desktop.
Save rbo/45fbe083a7879f04c41aad599b6d5b86 to your computer and use it in GitHub Desktop.
x11
apiVersion: apps/v1
kind: Deployment
metadata:
name: x11
labels:
app: x11
app.kubernetes.io/component: x11
app.kubernetes.io/instance: x11
app.kubernetes.io/name: x11
app.kubernetes.io/part-of: x11-app
app.openshift.io/runtime: other-linux
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: x11
template:
metadata:
labels:
app: x11
spec:
serviceAccountName: privileged
containers:
- name: x11
securityContext:
runAsUser: 0
privileged: true
image: registry.fedoraproject.org/fedora:35
command:
- /bin/sh
- -c
- |
set -x
yum -y groups install "Basic Desktop" "Fonts"
yum -y install firefox xinput
X &
export DISPLAY=:0
firefox -kiosk --private-window https://examples.openshift.pub/
sleep infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment