2023-10-05 14:34:37 +02:00

38 lines
670 B
YAML

---
apiVersion: v1
kind: PersistentVolume
metadata:
namespace: syncthing
name: syncthing-nfs
labels:
directory: syncthing
spec:
storageClassName: fast
capacity:
storage: "100Gi"
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
nfs:
path: /data-sync
server: 10.43.239.43 # assigned to nfs-server service. Won't change as long as service is not redeployed
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: syncthing
name: syncthing-nfs
spec:
storageClassName: fast
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "100Gi"
selector:
matchLabels:
directory: syncthing