xgl.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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: SHARED
  27. value: "TRUE"
  28. - name: VNCPASS
  29. value: "vncpasswd"
  30. # valueFrom:
  31. # secretKeyRef:
  32. # name: xgl-pass
  33. # key: xgl-pass
  34. securityContext:
  35. privileged: true
  36. stdin: true
  37. tty: true
  38. ports:
  39. - containerPort: 5901
  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: /cache
  51. name: xgl-cache-vol
  52. - mountPath: /home/user
  53. name: xgl-root-vol
  54. - mountPath: /dev/shm
  55. name: dshm
  56. - mountPath: /dev/tty0
  57. name: tty
  58. volumes:
  59. - name: xgl-cache-vol
  60. emptyDir: {}
  61. # persistentVolumeClaim:
  62. # claimName: xgl-cache-vol
  63. - name: xgl-root-vol
  64. emptyDir: {}
  65. # persistentVolumeClaim:
  66. # claimName: xgl-root-vol
  67. - name: dshm
  68. emptyDir:
  69. medium: Memory
  70. - name: tty
  71. hostPath:
  72. path: /dev/tty0