deployment.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: freerdp
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: freerdp
  9. app.kubernetes.io/part-of: freerdp
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: freerdp
  14. app.kubernetes.io/part-of: freerdp
  15. spec:
  16. containers:
  17. - image: docker-registry.intr/utils/freerdp:master
  18. name: freerdp
  19. ports:
  20. - name: vnc
  21. containerPort: 5900
  22. protocol: TCP
  23. resources:
  24. limits:
  25. cpu: 2000m
  26. memory: 2048Mi
  27. requests:
  28. cpu: 500m
  29. memory: 512Mi
  30. env:
  31. - name: DISPLAY
  32. value: ":0"
  33. - name: VNC_PASSWD
  34. value: /etc/tigervnc/passwd
  35. livenessProbe:
  36. tcpSocket:
  37. port: vnc
  38. readinessProbe:
  39. tcpSocket:
  40. port: vnc
  41. securityContext:
  42. capabilities:
  43. add:
  44. - SYS_ADMIN
  45. - SYS_CHROOT
  46. volumeMounts:
  47. - mountPath: /etc/tigervnc/passwd
  48. subPath: passwd
  49. readOnly: true
  50. name: vnc
  51. - mountPath: /run
  52. name: run
  53. - mountPath: /tmp
  54. name: tmp
  55. - mountPath: /var/run/user01/.ratpoisonrc
  56. name: ratpoison-configuration
  57. subPath: .ratpoisonrc
  58. volumes:
  59. - name: vnc
  60. secret:
  61. secretName: vnc
  62. - name: run
  63. emptyDir:
  64. sizeLimit: 10M
  65. - name: tmp
  66. emptyDir:
  67. sizeLimit: 100M
  68. - name: ratpoison-configuration
  69. configMap:
  70. name: ratpoison-configuration