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: PASSWD
  31. value: "mypasswd"
  32. # valueFrom:
  33. # secretKeyRef:
  34. # name: xgl-pass
  35. # key: xgl-pass
  36. - name: VIDEO_PORT
  37. value: "DFP"
  38. stdin: true
  39. tty: true
  40. ports:
  41. - containerPort: 8080
  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: /dev/shm
  53. name: dshm
  54. - mountPath: /cache
  55. name: xgl-cache-vol
  56. - mountPath: /home/user
  57. name: xgl-root-vol
  58. volumes:
  59. - name: dshm
  60. emptyDir:
  61. medium: Memory
  62. - name: xgl-cache-vol
  63. emptyDir: {}
  64. # persistentVolumeClaim:
  65. # claimName: xgl-cache-vol
  66. - name: xgl-root-vol
  67. emptyDir: {}
  68. # persistentVolumeClaim:
  69. # claimName: xgl-root-vol