-
Notifications
You must be signed in to change notification settings - Fork 4
/
xorg.yaml
62 lines (62 loc) · 1.36 KB
/
xorg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
apiVersion: v1
kind: Pod
metadata:
name: display-server
spec:
volumes:
- name: xorg-socket
hostPath:
path: /tmp/.X11-unix/
- name: tty
hostPath:
path: /dev/tty1
- name: dri
hostPath:
path: /dev/dri
- name: input
hostPath:
path: /dev/input
- name: udev
hostPath:
path: /run/udev
- name: tmp
emptyDir:
medium: Memory
securityContext:
supplementalGroups:
- 39
- 63
- 999
restartPolicy: Never
containers:
- name: xorg
image: localhost/silverkube
imagePullPolicy: Never
securityContext:
privileged: false
# Enable xorg setuid wrapper to set drm master
allowPrivilegeEscalation: true
runAsUser: 1000
capabilities:
add:
- CAP_SYS_ADMIN
stdin: true
tty: true
volumeMounts:
- mountPath: "/var/log"
name: tmp
- mountPath: "/tmp"
name: tmp
- mountPath: "/tmp/.X11-unix"
name: xorg-socket
- mountPath: "/dev/tty1"
name: tty
- mountPath: "/dev/dri"
name: dri
- mountPath: "/dev/input"
name: input
- mountPath: "/run/udev"
name: udev
command: ["/bin/Xorg", "-sharevts", "vt1", "-keeptty"]
# command: ["/bin/sleep", "Inf"]