| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: xgl
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: xgl
- template:
- metadata:
- labels:
- app: xgl
- spec:
- hostname: xgl
- containers:
- - name: xgl
- image: ehfd/nvidia-glx-desktop:latest
- env:
- - name: TZ
- value: "UTC"
- - name: SIZEW
- value: "1920"
- - name: SIZEH
- value: "1080"
- - name: CDEPTH
- value: "24"
- - name: SHARED
- value: "TRUE"
- - name: VNCPASS
- value: "vncpasswd"
- # valueFrom:
- # secretKeyRef:
- # name: xgl-pass
- # key: xgl-pass
- securityContext:
- privileged: true
- stdin: true
- tty: true
- ports:
- - containerPort: 5901
- protocol: TCP
- resources:
- limits:
- memory: 64Gi
- cpu: "16"
- nvidia.com/gpu: 1
- requests:
- memory: 100Mi
- cpu: 100m
- volumeMounts:
- - mountPath: /cache
- name: xgl-cache-vol
- - mountPath: /home/user
- name: xgl-root-vol
- - mountPath: /dev/shm
- name: dshm
- - mountPath: /dev/tty0
- name: tty
- volumes:
- - name: xgl-cache-vol
- emptyDir: {}
- # persistentVolumeClaim:
- # claimName: xgl-cache-vol
- - name: xgl-root-vol
- emptyDir: {}
- # persistentVolumeClaim:
- # claimName: xgl-root-vol
- - name: dshm
- emptyDir:
- medium: Memory
- - name: tty
- hostPath:
- path: /dev/tty0
|