You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
657 B

---
apiVersion: v1
kind: PersistentVolume
metadata:
name: photos-nextcloud
spec:
storageClassName: local-path
capacity:
storage: 200Gi
accessModes:
- ReadWriteOnce
local:
path: /srv/smb/media/photos
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- sserver
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: photos-nextcloud
namespace: nextcloud
spec:
storageClassName: local-path
volumeName: photos-nextcloud
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Gi