xgl.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: xgl
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app: xgl
  10. template:
  11. metadata:
  12. labels:
  13. app: xgl
  14. spec:
  15. hostname: xgl
  16. containers:
  17. - name: xgl
  18. image: ghcr.io/ehfd/nvidia-glx-desktop:latest
  19. env:
  20. - name: TZ
  21. value: "UTC"
  22. - name: SIZEW
  23. value: "1920"
  24. - name: SIZEH
  25. value: "1080"
  26. - name: CDEPTH
  27. value: "24"
  28. - name: PASSWD
  29. value: "mypasswd"
  30. # valueFrom:
  31. # secretKeyRef:
  32. # name: xgl-pass
  33. # key: xgl-pass
  34. - name: VIDEO_PORT
  35. value: "DFP"
  36. stdin: true
  37. tty: true
  38. ports:
  39. - containerPort: 8080
  40. protocol: TCP
  41. resources:
  42. limits:
  43. memory: 64Gi
  44. cpu: "16"
  45. nvidia.com/gpu: 1
  46. requests:
  47. memory: 100Mi
  48. cpu: 100m
  49. volumeMounts:
  50. - mountPath: /dev/shm
  51. name: dshm
  52. - mountPath: /cache
  53. name: xgl-cache-vol
  54. - mountPath: /home/user
  55. name: xgl-root-vol
  56. volumes:
  57. - name: dshm
  58. emptyDir:
  59. medium: Memory
  60. - name: xgl-cache-vol
  61. emptyDir: {}
  62. # persistentVolumeClaim:
  63. # claimName: xgl-cache-vol
  64. - name: xgl-root-vol
  65. emptyDir: {}
  66. # persistentVolumeClaim:
  67. # claimName: xgl-root-vol