K8s Loki with NFS Storage volume values.yaml config

Hi! I want to install Loki in my K8s cluster. (Grafana and Prometheus I installed in the past)
I made namespace loki: kubectl create namespace loki
I add Loki in Helm and get value.yaml:
helm repo add loki https://grafana.github.io/loki/charts
helm repo update
helm show values loki/loki > values.yaml
I made loki-volume.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: loki-server-volume
spec:
storageClassName: gp2
capacity:
storage: 40Gi #Size of the volume
accessModes:
- ReadWriteOnce #type of access
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: /k8s-nfs-test/loki
server: 10.10.10.9

I install it kubectl apply -f loki-volume.yaml

I have a problem change value.yaml configuration for PersistentVolume used.
I see this:

ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/

If you set enabled as “True”, you need :

- create a pv which above 10Gi and has same namespace with loki

- keep storageClassName same with below setting

persistence:
enabled: true
accessModes:

  • ReadWriteOnce
    size: 40Gi
    annotations: {}

subPath: “”

existingClaim:

But I don’t understanding how is possible saying to use My NFS volume “loki-server-volume”

I resolved it. I add in value.yaml
persistence:
type: pvc
enabled: true
storageClassName: “gp2”
accessModes:
- ReadWriteOnce
size: 2Gi