From a496c0cd8edf3c5d165e0220293c40c6b3b11267 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 22 Nov 2025 09:21:25 +0000 Subject: [PATCH] Switched nextcloud cron to sidecar Signed-off-by: Marcus Noble --- manifests/nextcloud_chart/manifest.yaml | 94 +++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/manifests/nextcloud_chart/manifest.yaml b/manifests/nextcloud_chart/manifest.yaml index 12b9e5b..87333fb 100644 --- a/manifests/nextcloud_chart/manifest.yaml +++ b/manifests/nextcloud_chart/manifest.yaml @@ -339,6 +339,97 @@ spec: - name: nextcloud-config mountPath: /var/www/html/config/smtp.config.php subPath: smtp.config.php + - name: cron + image: "nextcloud:32.0.1-apache" + imagePullPolicy: IfNotPresent + command: + - /cron.sh + env: + - name: SQLITE_DATABASE + value: "nextcloud" + - name: NEXTCLOUD_ADMIN_USER + valueFrom: + secretKeyRef: + name: nextcloud-nextcloud + key: nextcloud-username + - name: NEXTCLOUD_ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: nextcloud-nextcloud + key: nextcloud-password + - name: NEXTCLOUD_TRUSTED_DOMAINS + value: nextcloud.cluster.fun + - name: NEXTCLOUD_DATA_DIR + value: "/var/www/html/data" + - name: REDIS_HOST + valueFrom: + secretKeyRef: + name: nextcloud-nextcloud-redis + key: redis-host + - name: REDIS_PORT + valueFrom: + secretKeyRef: + name: nextcloud-nextcloud-redis + key: redis-port + - name: REDIS_HOST_PASSWORD + valueFrom: + secretKeyRef: + name: nextcloud-nextcloud-redis + key: redis-password + - name: REDIS_DB_INDEX + valueFrom: + secretKeyRef: + name: nextcloud-nextcloud-redis + key: redis-db-index + volumeMounts: + - name: nextcloud-data + mountPath: /var/www/ + subPath: root + - name: nextcloud-data + mountPath: /var/www/html + subPath: html + - name: nextcloud-data + mountPath: /var/www/html/data + subPath: data + - name: nextcloud-data + mountPath: /var/www/html/config + subPath: config + - name: nextcloud-data + mountPath: /var/www/html/custom_apps + subPath: custom_apps + - name: nextcloud-data + mountPath: /var/www/tmp + subPath: tmp + - name: nextcloud-data + mountPath: /var/www/html/themes + subPath: themes + - name: nextcloud-config + mountPath: /var/www/html/config/general.config.php + subPath: general.config.php + - name: nextcloud-s3 + mountPath: /var/www/html/config/s3.config.php + subPath: s3.config.php + - name: nextcloud-config + mountPath: /var/www/html/config/.htaccess + subPath: .htaccess + - name: nextcloud-config + mountPath: /var/www/html/config/apache-pretty-urls.config.php + subPath: apache-pretty-urls.config.php + - name: nextcloud-config + mountPath: /var/www/html/config/apcu.config.php + subPath: apcu.config.php + - name: nextcloud-config + mountPath: /var/www/html/config/apps.config.php + subPath: apps.config.php + - name: nextcloud-config + mountPath: /var/www/html/config/autoconfig.php + subPath: autoconfig.php + - name: nextcloud-config + mountPath: /var/www/html/config/redis.config.php + subPath: redis.config.php + - name: nextcloud-config + mountPath: /var/www/html/config/smtp.config.php + subPath: smtp.config.php volumes: - name: nextcloud-data persistentVolumeClaim: @@ -353,6 +444,7 @@ spec: securityContext: fsGroup: 33 --- +<<<<<<< Updated upstream # Source: nextcloud/templates/cronjob.yaml apiVersion: batch/v1 kind: CronJob @@ -392,6 +484,8 @@ spec: requests: memory: 200Mi --- +======= +>>>>>>> Stashed changes # Source: nextcloud/templates/ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress