diff options
| author | Paul Buetow <paul@buetow.org> | 2025-11-21 20:25:36 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-11-21 20:25:36 +0200 |
| commit | 0cc70a4b09404973448df9ccb836f4a408f565b3 (patch) | |
| tree | 659fbf6b943f7b23ee0441a3c8834414292f1a9d | |
| parent | a8695edcd9c36fff8452948834e819af4e965d21 (diff) | |
works now
| -rw-r--r-- | f3s/filerise/Justfile | 2 | ||||
| -rw-r--r-- | f3s/filerise/README.md | 6 | ||||
| -rw-r--r-- | f3s/filerise/helm-chart/templates/deployment.yaml | 18 | ||||
| -rw-r--r-- | f3s/filerise/helm-chart/templates/persistent-volume.yaml | 29 |
4 files changed, 12 insertions, 43 deletions
diff --git a/f3s/filerise/Justfile b/f3s/filerise/Justfile index 3a3a41b..37b3265 100644 --- a/f3s/filerise/Justfile +++ b/f3s/filerise/Justfile @@ -10,5 +10,7 @@ upgrade: delete: helm uninstall {{RELEASE_NAME}} --namespace {{NAMESPACE}} + kubectl delete pvc filerise-uploads-pvc filerise-users-pvc filerise-metadata-pvc -n {{NAMESPACE}} --ignore-not-found + kubectl delete pv filerise-uploads-pv filerise-users-pv filerise-metadata-pv --ignore-not-found deinstall: delete diff --git a/f3s/filerise/README.md b/f3s/filerise/README.md index c48a53a..722ec17 100644 --- a/f3s/filerise/README.md +++ b/f3s/filerise/README.md @@ -23,7 +23,6 @@ The deployment requires three persistent volumes. Create the directories on the mkdir -p /data/nfs/k3svolumes/filerise/uploads mkdir -p /data/nfs/k3svolumes/filerise/users mkdir -p /data/nfs/k3svolumes/filerise/metadata -mkdir -p /data/nfs/k3svolumes/filerise/config chown -R 1000:1000 /data/nfs/k3svolumes/filerise/ chmod -R 775 /data/nfs/k3svolumes/filerise/ ``` @@ -56,11 +55,12 @@ On first launch, you'll be guided through creating the initial admin user. ## Storage -The deployment uses four persistent volumes: +The deployment uses three persistent volumes on NFS: - **uploads** (50Gi): Stores uploaded files - **users** (1Gi): Stores user data and configurations - **metadata** (5Gi): Stores file metadata and database -- **config** (1Gi): Stores application configuration files + +Sessions are stored in an ephemeral emptyDir volume (pod-local). ## Justfile Commands diff --git a/f3s/filerise/helm-chart/templates/deployment.yaml b/f3s/filerise/helm-chart/templates/deployment.yaml index db0990b..49a309c 100644 --- a/f3s/filerise/helm-chart/templates/deployment.yaml +++ b/f3s/filerise/helm-chart/templates/deployment.yaml @@ -25,16 +25,13 @@ spec: mkdir -p /var/www/metadata/log mkdir -p /var/www/uploads mkdir -p /var/www/users - mkdir -p /var/www/config mkdir -p /var/www/sessions touch /var/www/metadata/log/error.log touch /var/www/metadata/log/access.log - touch /var/www/users/users.txt echo "[]" > /var/www/metadata/createdTags.json - chown -R 1000:1000 /var/www/metadata /var/www/uploads /var/www/users /var/www/config /var/www/sessions - chmod -R 775 /var/www/metadata /var/www/uploads /var/www/users /var/www/config + chown -R 1000:1000 /var/www/metadata /var/www/uploads /var/www/users /var/www/sessions + chmod -R 775 /var/www/metadata /var/www/uploads /var/www/users chmod 700 /var/www/sessions - chmod 664 /var/www/users/users.txt chmod 664 /var/www/metadata/createdTags.json volumeMounts: - name: filerise-uploads @@ -43,8 +40,6 @@ spec: mountPath: /var/www/users - name: filerise-metadata mountPath: /var/www/metadata - - name: filerise-config - mountPath: /var/www/config - name: filerise-sessions mountPath: /var/www/sessions containers: @@ -82,8 +77,8 @@ spec: mountPath: /var/www/users - name: filerise-metadata mountPath: /var/www/metadata - - name: filerise-config - mountPath: /var/www/config + - name: filerise-logs + mountPath: /var/www/metadata/log - name: filerise-sessions mountPath: /var/www/sessions - name: start-script @@ -99,12 +94,11 @@ spec: - name: filerise-metadata persistentVolumeClaim: claimName: filerise-metadata-pvc - - name: filerise-config - persistentVolumeClaim: - claimName: filerise-config-pvc - name: start-script configMap: name: filerise-start-script defaultMode: 0755 - name: filerise-sessions emptyDir: {} + - name: filerise-logs + emptyDir: {} diff --git a/f3s/filerise/helm-chart/templates/persistent-volume.yaml b/f3s/filerise/helm-chart/templates/persistent-volume.yaml index 22cd75e..7908fe4 100644 --- a/f3s/filerise/helm-chart/templates/persistent-volume.yaml +++ b/f3s/filerise/helm-chart/templates/persistent-volume.yaml @@ -44,21 +44,6 @@ spec: type: Directory --- apiVersion: v1 -kind: PersistentVolume -metadata: - name: filerise-config-pv -spec: - capacity: - storage: 1Gi - volumeMode: Filesystem - accessModes: - - ReadWriteOnce - persistentVolumeReclaimPolicy: Retain - hostPath: - path: /data/nfs/k3svolumes/filerise/config - type: Directory ---- -apiVersion: v1 kind: PersistentVolumeClaim metadata: name: filerise-uploads-pvc @@ -96,16 +81,4 @@ spec: resources: requests: storage: 5Gi ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: filerise-config-pvc - namespace: services -spec: - storageClassName: "" - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi + |
