---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: iot-homeassistant-pv
  namespace: iot
  annotations:
    kustomize.toolkit.fluxcd.io/prune: disabled
spec:
  capacity:
    storage: 1Gi 
  volumeMode: Filesystem
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  csi:
    driver: driver.longhorn.io 
    fsType: ext4
    volumeAttributes:
      numberOfReplicas: "3"
      staleReplicaTimeout: "30" 
    volumeHandle: iot-homeassistant 
  storageClassName: longhorn 