overleaf-deployment.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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: harbor.reymota.es/overleaf/k8s-overleaf:5
  81. image: abompotas/overleaf:5
  82. name: overleaf
  83. # securityContext:
  84. # allowPrivilegeEscalation: false
  85. # capabilities:
  86. # drop:
  87. # - ALL
  88. # privileged: false
  89. # readOnlyRootFilesystem: true
  90. # seLinuxOptions: {}
  91. # seccompProfile:
  92. # type: RuntimeDefault
  93. # runAsUser: 0
  94. # runAsGroup: 0
  95. # runAsNonRoot: true
  96. ports:
  97. - containerPort: 80
  98. protocol: TCP
  99. volumeMounts:
  100. - mountPath: /var/lib/overleaf
  101. name: overleaf-data
  102. securityContext:
  103. fsGroup: 65534
  104. # fsGroupChangePolicy: Always
  105. runAsUser: 0
  106. runAsGroup: 0
  107. restartPolicy: Always
  108. terminationGracePeriodSeconds: 60
  109. volumes:
  110. - name: overleaf-data
  111. persistentVolumeClaim:
  112. claimName: overleaf-data