overleaf-deployment.yaml 3.8 KB

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