4.1
You are viewing documentation for an older version of Lenses.io View latest documentation here
Persistent volumes
You can enable Persistent Volume (PV) to keep the state for the Lenses embedded database. The chart will create automatically a Persistent Volume Claim (PVC) and if you provide a Storage Class, it will create/bind dynamically a PV with a reclaim policy set to Delete.
To enable a Persistent Volume when installing via Helm, amend your values.yaml
to show:
lenses:
persistence:
enabled: true
Based on the type of storageClass you will use, the PVC will choose the appropriate volume plugin for provisioning PVs. You can check more storage provisioning info.
If you need to change the re-claim policy from Delete, use following command:
kubectl patch \
pv <your-pv-name> \
-p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'