apiVersion: v1
kind: PersistentVolume
metadata:
  name: my-pre-pv
  annotations:
    pv.kubernetes.io/provisioned-by: filestore.csi.storage.gke.io
spec:
  storageClassName: "csi-filestore"
  capacity:
    storage: 1Ti
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: "Retain"
  volumeMode: "Filesystem"
  csi:
    driver: "filestore.csi.storage.gke.io"
    fsType: "nfs" # This field is needed, because, if the PV fstype is not specified, then FsGroup apply for RWO volumes is skipped by the kubelet
    # Modify this to use the one, filestore instance and share name
    volumeHandle: "modeInstance/<zone>/<filestore-instance-name>/<filestore-share-name>"
    volumeAttributes:
      ip: <Filestore Instance IP> # Modify this to Pre-provisioned Filestore instance IP
      volume: vol1 # Modify this to Pre-provisioned Filestore instance share name
