nextcloud: align app/data mounts

This commit is contained in:
Brad Stein 2026-01-07 04:41:00 -03:00
parent 46c0a4e290
commit 7506919394
4 changed files with 32 additions and 12 deletions

View File

@ -25,6 +25,7 @@ data:
'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => 'bstein.dev', 'mail_domain' => 'bstein.dev',
'mail_from_address' => 'no-reply', 'mail_from_address' => 'no-reply',
'datadirectory' => '/var/www/html/data',
'apps_paths' => 'apps_paths' =>
array ( array (
0 => 0 =>

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
@ -139,8 +141,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
@ -226,12 +230,14 @@ 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
resources: resources:
requests: requests:
cpu: 250m cpu: 250m
memory: 1Gi memory: 1Gi
@ -239,9 +245,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