# Optional static PV example for NFS-backed storage. # This file is not referenced from kustomization.yaml by default because the # default storage flow uses dynamic provisioning via the Longhorn PVC. # # To use this file: # 1. Add storage/persistentvolume-nfs.yaml to resources in this overlay. # 2. Update persistentvolumeclaim.yaml to set: # storageClassName: nfs-shared # volumeName: app-data # accessModes: [ReadWriteMany] # 3. Replace the placeholder NFS server and export path below. apiVersion: v1 kind: PersistentVolume metadata: name: app-data spec: capacity: storage: 10Gi accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain claimRef: apiVersion: v1 kind: PersistentVolumeClaim name: app-data namespace: security storageClassName: nfs-shared mountOptions: - nfsvers=4.1 nfs: server: nfs.example.internal path: /exports/app-data