overleaf-deployment.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. kompose.cmd: kompose convert -f docker-compose.yml
  6. kompose.version: 1.34.0 (cbf2835db)
  7. labels:
  8. io.kompose.service: sharelatex
  9. name: sharelatex
  10. spec:
  11. replicas: 1
  12. selector:
  13. matchLabels:
  14. io.kompose.service: sharelatex
  15. strategy:
  16. type: Recreate
  17. template:
  18. metadata:
  19. annotations:
  20. kompose.cmd: kompose convert -f docker-compose.yml
  21. kompose.version: 1.34.0 (cbf2835db)
  22. labels:
  23. io.kompose.service: sharelatex
  24. spec:
  25. containers:
  26. - env:
  27. - name: EMAIL_CONFIRMATION_DISABLED
  28. valueFrom:
  29. configMapKeyRef:
  30. key: EMAIL_CONFIRMATION_DISABLED
  31. name: sharelatex-variables
  32. - name: ENABLED_LINKED_FILE_TYPES
  33. valueFrom:
  34. configMapKeyRef:
  35. key: ENABLED_LINKED_FILE_TYPES
  36. name: sharelatex-variables
  37. - name: ENABLE_CONVERSIONS
  38. valueFrom:
  39. configMapKeyRef:
  40. key: ENABLE_CONVERSIONS
  41. name: sharelatex-variables
  42. - name: EXTERNAL_AUTH
  43. valueFrom:
  44. configMapKeyRef:
  45. key: EXTERNAL_AUTH
  46. name: sharelatex-variables
  47. - name: GIT_BRIDGE_ENABLED
  48. value: "false"
  49. - name: GIT_BRIDGE_HOST
  50. value: git-bridge
  51. - name: GIT_BRIDGE_PORT
  52. value: "8000"
  53. - name: OVERLEAF_APP_NAME
  54. valueFrom:
  55. configMapKeyRef:
  56. key: OVERLEAF_APP_NAME
  57. name: sharelatex-variables
  58. - name: OVERLEAF_MONGO_URL
  59. valueFrom:
  60. configMapKeyRef:
  61. key: OVERLEAF_MONGO_URL
  62. name: sharelatex-variables
  63. - name: OVERLEAF_REDIS_HOST
  64. valueFrom:
  65. configMapKeyRef:
  66. key: OVERLEAF_REDIS_HOST
  67. name: sharelatex-variables
  68. - name: REDIS_HOST
  69. valueFrom:
  70. configMapKeyRef:
  71. key: REDIS_HOST
  72. name: sharelatex-variables
  73. - name: REDIS_PORT
  74. valueFrom:
  75. configMapKeyRef:
  76. key: REDIS_PORT
  77. name: sharelatex-variables
  78. - name: V1_HISTORY_URL
  79. value: http://sharelatex:3100/api
  80. image: abompotas/overleaf:5
  81. name: overleaf
  82. # securityContext:
  83. # allowPrivilegeEscalation: false
  84. # capabilities:
  85. # drop:
  86. # - ALL
  87. # privileged: false
  88. # readOnlyRootFilesystem: true
  89. # seLinuxOptions: {}
  90. # seccompProfile:
  91. # type: RuntimeDefault
  92. # runAsUser: 0
  93. # runAsGroup: 0
  94. # runAsNonRoot: true
  95. ports:
  96. - containerPort: 80
  97. protocol: TCP
  98. volumeMounts:
  99. - mountPath: /var/lib/overleaf
  100. name: overleaf-data
  101. securityContext:
  102. fsGroup: 65534
  103. # fsGroupChangePolicy: Always
  104. runAsUser: 0
  105. runAsGroup: 0
  106. restartPolicy: Always
  107. terminationGracePeriodSeconds: 60
  108. volumes:
  109. - name: overleaf-data
  110. persistentVolumeClaim:
  111. claimName: overleaf-data