xgl.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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: VNCPASS
  27. value: "vncpasswd"
  28. # valueFrom:
  29. # secretKeyRef:
  30. # name: xgl-pass
  31. # key: xgl-pass
  32. securityContext:
  33. privileged: true
  34. stdin: true
  35. tty: true
  36. ports:
  37. - containerPort: 5901
  38. protocol: TCP
  39. resources:
  40. limits:
  41. memory: 64Gi
  42. cpu: "16"
  43. nvidia.com/gpu: 1
  44. requests:
  45. memory: 100Mi
  46. cpu: 100m
  47. volumeMounts:
  48. - mountPath: /cache
  49. name: xgl-cache-vol
  50. - mountPath: /home/user
  51. name: xgl-root-vol
  52. - mountPath: /dev/shm
  53. name: dshm
  54. - mountPath: /dev/tty0
  55. name: tty
  56. volumes:
  57. - name: xgl-cache-vol
  58. emptyDir: {}
  59. # persistentVolumeClaim:
  60. # claimName: xgl-cache-vol
  61. - name: xgl-root-vol
  62. emptyDir: {}
  63. # persistentVolumeClaim:
  64. # claimName: xgl-root-vol
  65. - name: dshm
  66. emptyDir:
  67. medium: Memory
  68. - name: tty
  69. hostPath:
  70. path: /dev/tty0