diff --git a/templates/nextcloud-onlyoffice-config.yaml b/templates/nextcloud-onlyoffice-config.yaml index 2eb97cda901220d5a5386ee9b224142e95e233d3..1b43bf210aa9e9397e65a5439f0adce21184c49b 100644 --- a/templates/nextcloud-onlyoffice-config.yaml +++ b/templates/nextcloud-onlyoffice-config.yaml @@ -31,9 +31,6 @@ data: # system.bulkupload.enabled is set to false to disable bulkupload. Bulkupload # has led to failures while using the desktop client for some of our # customers. - # apps.core.backgroundjobs_mode set to cron disables the unreliable ajax - # scheduling that is enabled by default. Ajax scheduling is not needed - # because cronjobs are regularly executed by a kubernetes resource. config.json: | { "system":{ diff --git a/templates/setup-apps-configmap.yaml b/templates/setup-apps-configmap.yaml index aa8ef7c8bf623dfc739ecbc76fbf3ff836e1c142..557f1372184b3cf779eb94d8be2829cdda66a774 100644 --- a/templates/setup-apps-configmap.yaml +++ b/templates/setup-apps-configmap.yaml @@ -162,11 +162,6 @@ data: # Config settings from the configmap above run_as "php $occ config:import /var/local/config.json" - # We used to set this in `config.json` too, but ran into a nextcloud bug: - # https://github.com/nextcloud/server/issues/45083 - # The `echo "yes"` is necessary because in some cases nextcloud will warn - # about the string type and ask for confirmation. - echo "yes" | run_as "php $occ config:app:set --value webcron --type string core backgroundjobs_mode" echo "Updating database indices, columns, keys, etc." run_as "php $occ db:add-missing-indices --no-interaction" diff --git a/values-local.yaml.example b/values-local.yaml.example index a3fa4a2198fca1bb454d2309a03e94913e056bf7..0897bc9760c4fd49db63b0ff541624a0c4b989c8 100644 --- a/values-local.yaml.example +++ b/values-local.yaml.example @@ -33,11 +33,6 @@ nextcloud: # Shared redis password for Nextcloud and OnlyOffice # password: CHANGE_ME - # Creates a kubernetes cronJob object that runs nextcloud's cron.php - # every 5 minutes (*/5 * * * *) - # cronjob: - # enabled: true - # persistence: # enabled: true # size: 2Gi diff --git a/values.yaml b/values.yaml index 6abb95487333f2ac7a93b0b8652da23db7ff739a..659bd1941e2743dd4b326cb379031423e70bd4f6 100644 --- a/values.yaml +++ b/values.yaml @@ -25,6 +25,15 @@ nextcloud: enabled: true architecture: standalone + cronjob: + enabled: true + resources: + requests: + cpu: 10m + memory: 128Mi + limits: + memory: 1Gi + # Use 2 GB of storage for NC storage (maybe make configurable later?) persistence: enabled: true