nextcloud: restore app and user-data volumes

This commit is contained in:
Brad Stein 2026-01-07 03:39:59 -03:00
parent ef0dfab20c
commit 428c2b5435
4 changed files with 58 additions and 11 deletions

View File

@ -24,9 +24,14 @@ spec:
args: args:
- "cd /var/www/html && php -f cron.php" - "cd /var/www/html && php -f cron.php"
volumeMounts: volumeMounts:
- name: nextcloud-data - name: nextcloud-app
mountPath: /var/www/html mountPath: /var/www/html
- name: nextcloud-user-data
mountPath: /var/www/html/data
volumes: volumes:
- name: nextcloud-data - name: nextcloud-app
persistentVolumeClaim: persistentVolumeClaim:
claimName: nextcloud-data claimName: nextcloud-app
- name: nextcloud-user-data
persistentVolumeClaim:
claimName: nextcloud-user-data

View File

@ -42,8 +42,10 @@ spec:
runAsUser: 0 runAsUser: 0
runAsGroup: 0 runAsGroup: 0
volumeMounts: volumeMounts:
- name: nextcloud-data - name: nextcloud-app
mountPath: /var/www/html mountPath: /var/www/html
- name: nextcloud-user-data
mountPath: /var/www/html/data
- name: nextcloud-config - name: nextcloud-config
mountPath: /var/www/html/config/extra.config.php mountPath: /var/www/html/config/extra.config.php
subPath: extra.config.php subPath: extra.config.php
@ -141,8 +143,10 @@ spec:
name: nextcloud-oidc name: nextcloud-oidc
key: client-secret key: client-secret
volumeMounts: volumeMounts:
- name: nextcloud-data - name: nextcloud-app
mountPath: /var/www/html mountPath: /var/www/html
- name: nextcloud-user-data
mountPath: /var/www/html/data
- name: nextcloud-config - name: nextcloud-config
mountPath: /var/www/html/config/extra.config.php mountPath: /var/www/html/config/extra.config.php
subPath: extra.config.php subPath: extra.config.php
@ -228,8 +232,10 @@ spec:
- containerPort: 80 - containerPort: 80
name: http name: http
volumeMounts: volumeMounts:
- name: nextcloud-data - name: nextcloud-app
mountPath: /var/www/html mountPath: /var/www/html
- name: nextcloud-user-data
mountPath: /var/www/html/data
- name: nextcloud-config - name: nextcloud-config
mountPath: /var/www/html/config/extra.config.php mountPath: /var/www/html/config/extra.config.php
subPath: extra.config.php subPath: extra.config.php
@ -241,9 +247,12 @@ spec:
cpu: 1 cpu: 1
memory: 3Gi memory: 3Gi
volumes: volumes:
- name: nextcloud-data - name: nextcloud-app
persistentVolumeClaim: persistentVolumeClaim:
claimName: nextcloud-data claimName: nextcloud-app
- name: nextcloud-user-data
persistentVolumeClaim:
claimName: nextcloud-user-data
- name: nextcloud-config - name: nextcloud-config
configMap: configMap:
name: nextcloud-config name: nextcloud-config

View File

@ -34,8 +34,10 @@ spec:
name: nextcloud-admin name: nextcloud-admin
key: admin-password key: admin-password
volumeMounts: volumeMounts:
- name: nextcloud-data - name: nextcloud-app
mountPath: /var/www/html mountPath: /var/www/html
- name: nextcloud-user-data
mountPath: /var/www/html/data
- name: maintenance-script - name: maintenance-script
mountPath: /maintenance/maintenance.sh mountPath: /maintenance/maintenance.sh
subPath: maintenance.sh subPath: maintenance.sh
@ -47,9 +49,12 @@ spec:
cpu: 500m cpu: 500m
memory: 512Mi memory: 512Mi
volumes: volumes:
- name: nextcloud-data - name: nextcloud-app
persistentVolumeClaim: persistentVolumeClaim:
claimName: nextcloud-data claimName: nextcloud-app
- name: nextcloud-user-data
persistentVolumeClaim:
claimName: nextcloud-user-data
- name: maintenance-script - name: maintenance-script
configMap: configMap:
name: nextcloud-maintenance-script name: nextcloud-maintenance-script

View File

@ -1,6 +1,34 @@
# services/nextcloud/pvc.yaml # services/nextcloud/pvc.yaml
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata:
name: nextcloud-app
namespace: nextcloud
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: astreae
volumeName: pvc-9cf910d9-ae30-48e6-8d90-a6cbbf3cd2cf
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nextcloud-user-data
namespace: nextcloud
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Ti
storageClassName: asteria
volumeName: pvc-ee0fac85-d81b-48ad-aa0e-837a4be409b7
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata: metadata:
name: nextcloud-data name: nextcloud-data
namespace: nextcloud namespace: nextcloud