Loki don't persist data

I’m using AKS and using helm grafana/loki-stack to install it, but I can’t persist volumes and if I restart my loki’s pod, I lose all logs. After installing with these custom values, I had the same results:

persistence:
enableStatefulSetAutoDeletePVC: false
type: pvc
enabled: true
size: 5Gi
storageClass: “managed-csi”

Regards

Please share your configuration.

Also, you should consider storing your Loki data in azure storage.

Hi! I use the default configuration using helm chart as: helm install loki grafana/loki-stack --values loki-values.yaml and my loki-values.yaml is:

persistence:
enableStatefulSetAutoDeletePVC: false
type: pvc
enabled: true
size: 5Gi
storageClass: “managed-csi”

Regards