deployment.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: firefox
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: firefox
  9. app.kubernetes.io/part-of: firefox
  10. template:
  11. metadata:
  12. annotations:
  13. wavy.squat.ai/enable: "true"
  14. labels:
  15. app.kubernetes.io/name: firefox
  16. app.kubernetes.io/part-of: firefox
  17. spec:
  18. initContainers:
  19. - name: chmod-tmp
  20. image: nixery.dev/shell/coreutils
  21. command:
  22. - chmod
  23. - "1777"
  24. - /tmp
  25. volumeMounts:
  26. - mountPath: /tmp
  27. subPath: tmp
  28. name: tmp
  29. resources:
  30. limits:
  31. cpu: 10m
  32. memory: 10Mi
  33. requests:
  34. cpu: 10m
  35. memory: 10Mi
  36. securityContext:
  37. capabilities:
  38. drop:
  39. - ALL
  40. readOnlyRootFilesystem: true
  41. containers:
  42. - image: nixery.dev/firefox/fontconfig
  43. name: firefox
  44. command:
  45. - firefox
  46. resources:
  47. limits:
  48. cpu: 2000m
  49. memory: 2048Mi
  50. env:
  51. - name: HOME
  52. value: /tmp
  53. securityContext:
  54. runAsUser: 1000
  55. runAsGroup: 998
  56. volumeMounts:
  57. - mountPath: /dev/shm
  58. name: shm
  59. - mountPath: /run
  60. name: tmp
  61. subPath: run
  62. - mountPath: /tmp
  63. name: tmp
  64. subPath: tmp
  65. volumes:
  66. - name: shm
  67. emptyDir:
  68. medium: Memory
  69. sizeLimit: 512Mi
  70. - name: tmp
  71. emptyDir:
  72. sizeLimit: 100M