Skip to content

Commit

Permalink
fix(nextcloud): persistence pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanguille committed Nov 19, 2024
1 parent b1f1cef commit 9214dc4
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions kubernetes/apps/default/nextcloud/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
values:
image:
flavor: fpm-alpine
tag: 29.0-fpm-alpine
tag: 29.0.0-fpm-alpine
nginx:
enabled: true

Expand All @@ -37,14 +37,6 @@ spec:
envFrom:
- secretRef:
name: nextcloud-secret
- name: nextcloud-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ["sh", "-c", "sleep infinity"]
volumeMounts:
- name: nextcloud-data
mountPath: /var/www/html/data
- name: nextcloud-config
mountPath: /var/www/html/config

extraEnv:
- name: REDIS_HOST
Expand Down Expand Up @@ -108,6 +100,8 @@ spec:
'enable_previews' => true,
);
datadir: /var/www/data

deploymentAnnotations:
reloader.stakater.com/auto: "true"

Expand Down Expand Up @@ -162,19 +156,13 @@ spec:

persistence:
# Config storage using volsync template PVC (local)
config:
enabled: true
existingClaim: *app
globalMounts:
- path: /var/www/html/config
readOnly: false
defaultPermissions: "0770"
enabled: true
existingClaim: *app

# Data directory using NFS
nextcloudData:
enabled: true
existingClaim: nextcloud-nfs
accessMode: ReadWriteMany
existingClaim: nextcloud-pvc

cronjob:
enabled: true
Expand Down

0 comments on commit 9214dc4

Please sign in to comment.