From 141bc23c1fdd2b9911aa9377107d02a6f0d84d0e Mon Sep 17 00:00:00 2001 From: j Date: Sun, 27 Jul 2025 10:26:27 +1000 Subject: [PATCH] Config + data pvs --- deployments/home-server/syncthing.yaml | 45 +++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/deployments/home-server/syncthing.yaml b/deployments/home-server/syncthing.yaml index 10228d9..a0e6979 100644 --- a/deployments/home-server/syncthing.yaml +++ b/deployments/home-server/syncthing.yaml @@ -2,7 +2,21 @@ apiVersion: v1 kind: PersistentVolume metadata: - name: syncthing-pv + name: syncthing-data-pv +spec: + capacity: + storage: 5Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + storageClassName: local-path + hostPath: + path: /dpool/files +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: syncthing-config-pv spec: capacity: storage: 5Gi @@ -16,7 +30,7 @@ spec: apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: syncthing-pvc + name: syncthing-data-pvc namespace: home-server spec: accessModes: @@ -25,7 +39,21 @@ spec: resources: requests: storage: 5Gi - volumeName: syncthing-pv + volumeName: syncthing-data-pv +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: syncthing-config-pvc + namespace: home-server +spec: + accessModes: + - ReadWriteOnce + storageClassName: local-path + resources: + requests: + storage: 5Gi + volumeName: syncthing-config-pv --- apiVersion: apps/v1 kind: Deployment @@ -61,14 +89,21 @@ spec: protocol: UDP volumeMounts: - name: syncthing-data - mountPath: /var/syncthing + mountPath: /data + - name: syncthing-config + mountPath: /config env: - name: STGUIADDRESS value: "0.0.0.0:8384" + - name: STCONFIG + value: "/config" volumes: - name: syncthing-data persistentVolumeClaim: - claimName: syncthing-pvc + claimName: syncthing-data-pvc + - name: syncthing-config + persistentVolumeClaim: + claimName: syncthing-config-pvc --- apiVersion: v1 kind: Service