Skip to content

Commit

Permalink
Cron jobs documentation update (#434)
Browse files Browse the repository at this point in the history
* Update the CronJob doc with current behavior

Signed-off-by: ibcht <[email protected]>

* Bump chart minor version

Signed-off-by: ibcht <[email protected]>

---------

Signed-off-by: ibcht <[email protected]>
Co-authored-by: ibcht <[email protected]>
  • Loading branch information
ibcht and ibcht authored Sep 2, 2023
1 parent 3d31fa1 commit 3cf00cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 4.1.0
version: 4.1.1
appVersion: 27.0.2
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
21 changes: 9 additions & 12 deletions charts/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ helm install my-release nextcloud/nextcloud
* [Database Configurations](#database-configurations)
* [Persistence Configurations](#persistence-configurations)
* [Metrics Configurations](#metrics-configurations)
* [Cronjob](#cronjob)
* [Cron jobs](#cron-jobs)
* [Multiple config.php file](#multiple-configphp-file)
* [Using nginx](#using-nginx)
* [Preserving Source IP](#preserving-source-ip)
Expand Down Expand Up @@ -150,11 +150,11 @@ The following table lists the configurable parameters of the nextcloud chart and
| `redis.auth.password` | The password redis uses | `''` |
| `redis.auth.existingSecret` | The name of an existing secret with Redis® credentials | `''` |
| `redis.auth.existingSecretPasswordKey` | Password key to be retrieved from existing secret | `''` |
| `cronjob.enabled` | Whether to enable/disable cronjob | `false` |
| `cronjob.lifecycle.postStartCommand` | Specify deployment lifecycle hook postStartCommand | `nil` |
| `cronjob.lifecycle.preStopCommand` | Specify deployment lifecycle hook preStopCommand | `nil` |
| `cronjob.resources` | CPU/Memory resource requests/limits for the cronjob sidecar | `{}` |
| `cronjob.securityContext` | Optional security context for cronjob | `nil` |
| `cronjob.enabled` | Whether to enable/disable cron jobs sidecar | `false` |
| `cronjob.lifecycle.postStartCommand` | Specify deployment lifecycle hook postStartCommand for the cron jobs sidecar | `nil` |
| `cronjob.lifecycle.preStopCommand` | Specify deployment lifecycle hook preStopCommand for the cron jobs sidecar | `nil` |
| `cronjob.resources` | CPU/Memory resource requests/limits for the cron jobs sidecar | `{}` |
| `cronjob.securityContext` | Optional security context for cron jobs sidecar | `nil` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.loadBalancerIP` | LoadBalancerIp for service type LoadBalancer | `""` |
| `service.nodePort` | NodePort for service type NodePort | `nil` |
Expand Down Expand Up @@ -326,14 +326,11 @@ helm install --name my-release -f values.yaml nextcloud/nextcloud
> **Tip**: You can use the default [values.yaml](values.yaml)
## Cronjob
## Cron jobs
This chart can utilize Kubernetes `CronJob` resource to execute [background tasks](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html).
To execute [background tasks](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html) by using system cron instead of default Ajax cron, set `cronjob.enabled` parameter to `true`. Background jobs are important for tasks that do not necessarily need user intervention, but still need to be executed frequently (cleaning up, sending some notifications, pulling RSS feeds, etc.).
To use this functionality, set `cronjob.enabled` parameter to `true` and switch background mode to Webcron in your nextcloud settings page.
See the [Configuration](#configuration) section for further configuration of the cronjob resource.
> **Note**: For the cronjobs to work correctly, ingress must be also enabled (set `ingress.enabled` to `true`) and `nextcloud.host` has to be publicly resolvable.
Enabling this option will create a sidecar container in the Nextcloud pod, which will start a [`crond` daemon](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#cron) responsible for running the Nextcloud cron.php script. At first launch, the background jobs mode in your Nextcloud basic settings will automatically be set to ***Cron***.
## Multiple config.php file
Expand Down

0 comments on commit 3cf00cf

Please sign in to comment.