values.yaml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. ## Official nextcloud image version
  2. ## ref: https://hub.docker.com/r/library/nextcloud/tags/
  3. ##
  4. image:
  5. repository: nextcloud
  6. tag: 19.0.3-apache
  7. pullPolicy: IfNotPresent
  8. # pullSecrets:
  9. # - myRegistrKeySecretName
  10. ## Allowing use of ingress controllers
  11. ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
  12. ##
  13. # Allow configuration of lifecycle hooks
  14. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
  15. lifecycle: {}
  16. # postStartCommand: []
  17. # preStopCommand: []
  18. nextcloud:
  19. host: nextcloud.kube.home
  20. username: admin
  21. password: changeme
  22. update: 0
  23. datadir: /var/www/html/data
  24. tableprefix:
  25. persistence:
  26. subPath:
  27. mail:
  28. enabled: false
  29. fromAddress: user
  30. domain: domain.com
  31. smtp:
  32. host: domain.com
  33. secure: ssl
  34. port: 465
  35. authtype: LOGIN
  36. name: user
  37. password: pass
  38. # PHP Configuration files
  39. # Will be injected in /usr/local/etc/php/conf.d
  40. phpConfigs: {}
  41. # Default config files
  42. # IMPORTANT: Will be used only if you put extra configs, otherwise default will come from nextcloud itself
  43. # Default confgurations can be found here: https://github.com/nextcloud/docker/tree/master/16.0/apache/config
  44. defaultConfigs:
  45. # To protect /var/www/html/config
  46. .htaccess: true
  47. # Redis default configuration
  48. redis.config.php: true
  49. # Apache configuration for rewrite urls
  50. apache-pretty-urls.config.php: true
  51. # Define APCu as local cache
  52. apcu.config.php: true
  53. # Apps directory configs
  54. apps.config.php: true
  55. # Used for auto configure database
  56. autoconfig.php: true
  57. # SMTP default configuration
  58. smtp.config.php: true
  59. # Extra config files created in /var/www/html/config/
  60. # ref: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
  61. configs: {}
  62. # For example, to use S3 as primary storage
  63. # ref: https://docs.nextcloud.com/server/13/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3
  64. #
  65. # configs:
  66. # s3.config.php: |-
  67. # <?php
  68. # $CONFIG = array (
  69. # 'objectstore' => array(
  70. # 'class' => '\\OC\\Files\\ObjectStore\\S3',
  71. # 'arguments' => array(
  72. # 'bucket' => 'my-bucket',
  73. # 'autocreate' => true,
  74. # 'key' => 'xxx',
  75. # 'secret' => 'xxx',
  76. # 'region' => 'us-east-1',
  77. # 'use_ssl' => true
  78. # )
  79. # )
  80. # );
  81. ## Strategy used to replace old pods
  82. ## IMPORTANT: use with care, it is suggested to leave as that for upgrade purposes
  83. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
  84. strategy: "Recreate"
  85. # type: RollingUpdate
  86. # rollingUpdate:
  87. # maxSurge: 1
  88. # maxUnavailable: 0
  89. ##
  90. ## Extra environment variables
  91. extraEnv:
  92. # - name: SOME_SECRET_ENV
  93. # valueFrom:
  94. # secretKeyRef:
  95. # name: nextcloud
  96. # key: secret_key
  97. # Extra mounts for the pods. Example shown is for connecting a legacy NFS volume
  98. # to NextCloud pods in Kubernetes. This can then be configured in External Storage
  99. extraVolumes:
  100. # - name: nfs
  101. # nfs:
  102. # server: "10.0.0.1"
  103. # path: "/nextcloud_data"
  104. # readOnly: false
  105. extraVolumeMounts:
  106. # - name: nfs
  107. # mountPath: "/legacy_data"
  108. internalDatabase:
  109. enabled: false
  110. name: nextcloud
  111. ##
  112. ## External database configuration
  113. ##
  114. externalDatabase:
  115. enabled: true
  116. ## Supported database engines: mysql or postgresql
  117. type: postgresql
  118. ## Database host
  119. host:
  120. ## Database user
  121. user: nextcloud
  122. ## Database password
  123. password:
  124. ## Database name
  125. database: nextcloud
  126. ## Use a existing secret
  127. existingSecret:
  128. enabled: false
  129. # secretName: nameofsecret
  130. # usernameKey: username
  131. # passwordKey: password
  132. postgresql:
  133. host:
  134. ## Cronjob to execute Nextcloud background tasks
  135. ## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron
  136. ##
  137. cronjob:
  138. enabled: false
  139. # Nexcloud image is used as default but only curl is needed
  140. image: {}
  141. # repository: nextcloud
  142. # tag: 16.0.3-apache
  143. # pullPolicy: IfNotPresent
  144. # pullSecrets:
  145. # - myRegistrKeySecretName
  146. # Every 5 minutes
  147. # Note: Setting this to any any other value than 5 minutes might
  148. # cause issues with how nextcloud background jobs are executed
  149. schedule: "*/5 * * * *"
  150. annotations: {}
  151. # Set curl's insecure option if you use e.g. self-signed certificates
  152. curlInsecure: false
  153. failedJobsHistoryLimit: 5
  154. successfulJobsHistoryLimit: 2
  155. # If not set, nextcloud deployment one will be set
  156. # resources:
  157. # We usually recommend not to specify default resources and to leave this as a conscious
  158. # choice for the user. This also increases chances charts run on environments with little
  159. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  160. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  161. # limits:
  162. # cpu: 100m
  163. # memory: 128Mi
  164. # requests:
  165. # cpu: 100m
  166. # memory: 128Mi
  167. # If not set, nextcloud deployment one will be set
  168. # nodeSelector: {}
  169. # If not set, nextcloud deployment one will be set
  170. # tolerations: []
  171. # If not set, nextcloud deployment one will be set
  172. # affinity: {}
  173. service:
  174. nodePort: 9000
  175. ## Liveness and readiness probe values
  176. ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
  177. ##
  178. livenessProbe:
  179. enabled: true
  180. initialDelaySeconds: 30
  181. periodSeconds: 15
  182. timeoutSeconds: 5
  183. failureThreshold: 3
  184. successThreshold: 1
  185. readinessProbe:
  186. enabled: true
  187. initialDelaySeconds: 30
  188. periodSeconds: 15
  189. timeoutSeconds: 5
  190. failureThreshold: 3
  191. successThreshold: 1