Skip to content

Commit edb8bcc

Browse files
refactor volumes
1 parent 568894c commit edb8bcc

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

apps/navidrome/components/pvc/kustomization.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ patches:
88
kind: "Deployment"
99
name: "navidrome"
1010
patch: |-
11+
- op: "test"
12+
path: "/spec/template/spec/volumes/0/name"
13+
value: "data"
1114
- op: "replace"
1215
path: "/spec/template/spec/volumes/0"
1316
value:
14-
name: "storage"
17+
name: "data"
1518
persistentVolumeClaim:
16-
claimName: "navidrome-data"
19+
claimName: "data"

apps/navidrome/components/pvc/navidrome-data-pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: "v1"
33
kind: "PersistentVolumeClaim"
44
metadata:
5-
name: "navidrome-data"
5+
name: "data"
66
spec:
77
accessModes:
88
- "ReadWriteOnce"

apps/navidrome/deployment.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,18 @@ spec:
7777
port: "navidrome"
7878
initialDelaySeconds: 5
7979
volumeMounts:
80-
- name: "storage"
80+
- name: "data"
8181
mountPath: "/data"
82+
- name: "music"
83+
mountPath: "/music"
8284
topologySpreadConstraints:
8385
- maxSkew: 1
8486
topologyKey: location
8587
whenUnsatisfiable: ScheduleAnyway
8688
volumes:
87-
- name: storage
89+
- name: "data"
8890
emptyDir:
8991
sizeLimit: 5Gi
92+
- name: "music"
93+
emptyDir:
94+
sizeLimit: 5Gi

apps/navidrome/upsert-secrets.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)