xgl.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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: "UTC"
  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. 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