xgl.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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: ehfd/nvidia-glx-desktop:latest
  19. env:
  20. - name: TZ
  21. value: "America/Los_Angeles"
  22. - name: SIZEW
  23. value: "1920"
  24. - name: SIZEH
  25. value: "1080"
  26. - name: CDEPTH
  27. value: "24"
  28. - name: SHARED
  29. value: "TRUE"
  30. - name: VNCPASS
  31. value: "vncpasswd"
  32. # valueFrom:
  33. # secretKeyRef:
  34. # name: xgl-pass
  35. # key: xgl-pass
  36. securityContext:
  37. privileged: true
  38. stdin: true
  39. tty: true
  40. ports:
  41. - containerPort: 5901
  42. protocol: TCP
  43. resources:
  44. limits:
  45. memory: 64Gi
  46. cpu: "16"
  47. nvidia.com/gpu: 1
  48. requests:
  49. memory: 100Mi
  50. cpu: 100m
  51. volumeMounts:
  52. - mountPath: /cache
  53. name: xgl-cache-vol
  54. - mountPath: /home/user
  55. name: xgl-root-vol
  56. - mountPath: /dev/shm
  57. name: dshm
  58. - mountPath: /dev/tty0
  59. name: tty
  60. volumes:
  61. - name: xgl-cache-vol
  62. emptyDir: {}
  63. # persistentVolumeClaim:
  64. # claimName: xgl-cache-vol
  65. - name: xgl-root-vol
  66. emptyDir: {}
  67. # persistentVolumeClaim:
  68. # claimName: xgl-root-vol
  69. - name: dshm
  70. emptyDir:
  71. medium: Memory
  72. - name: tty
  73. hostPath:
  74. path: /dev/tty0