-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/10.1.0' into master
- Loading branch information
Showing
20 changed files
with
273 additions
and
1,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
base/manifests/cronjob-nextcloud-failed-upload-cleanup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
## | ||
# Kubernetes deployment manifest for clearing failed uploads older than 7 days | ||
# every hour. | ||
# | ||
# @author Guy Elsmore-Paddock (guy@inveniem.com) | ||
# @author Brandon McWhirter (brandon.mcwhirter@inveniem.com) | ||
# @copyright Copyright (c) 2022, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: nextcloud-failed-upload-cleanup | ||
spec: | ||
schedule: "0 * * * *" | ||
concurrencyPolicy: Forbid | ||
jobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: cron-nextcloud | ||
image: "inveniem/nextcloud-cron:latest" | ||
args: | ||
- '-s' | ||
- '/bin/sh' | ||
- '/cleanup_uploads.sh' | ||
resources: | ||
requests: | ||
cpu: 25m | ||
memory: 128Mi | ||
limits: | ||
cpu: 1500m | ||
memory: 512Mi | ||
volumeMounts: | ||
- name: volume-nextcloud-app | ||
mountPath: /var/www/html | ||
env: | ||
- name: NEXTCLOUD_FILE_LOCKING_ENABLED | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: enableFileLocking | ||
- name: NEXTCLOUD_TRUSTED_DOMAINS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: trustedDomains | ||
- name: NEXTCLOUD_ADMIN_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-admin-creds" | ||
key: username | ||
- name: NEXTCLOUD_ADMIN_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-admin-creds" | ||
key: password | ||
- name: MYSQL_HOST | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-mysql-creds" | ||
key: hostname | ||
- name: MYSQL_PORT | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-mysql-creds" | ||
key: port | ||
- name: MYSQL_DATABASE | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-mysql-creds" | ||
key: database | ||
- name: MYSQL_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-mysql-creds" | ||
key: username | ||
- name: MYSQL_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-mysql-creds" | ||
key: password | ||
- name: REDIS_HOST | ||
value: "internal-redis" | ||
- name: REDIS_PORT | ||
value: "6379" | ||
- name: REDIS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: "nextcloud-redis-creds" | ||
key: password | ||
volumes: | ||
# Ephemeral volume that contains the loaded Nextcloud software | ||
- name: volume-nextcloud-app | ||
emptyDir: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.