Skip to content

Snapshot policy setting per volume

When creating a PVC with our default storageclass netapp-premium, by default it applies a snapshotting policy with a retention of 7 days. These snapshots are kept on the volume itself so if you do not want to use that extra space for these snapshots you can use the following annotations on the PVC to turn that off:

annotations:    
  trident.netapp.io/snapshotPolicy: "none"
  trident.netapp.io/snapshotReserve: "0"
Or as a full example:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: testdata
  annotations:    
    trident.netapp.io/snapshotPolicy: "none"
    trident.netapp.io/snapshotReserve: "0"
spec:
  accessModes:
  - ReadWriteOnce
  storageClassName: 'netapp-premium'
  resources:
    requests:
      storage: 1Gi

Info

These settings via annotations are only set at creation. On existing volumes these settings will not be applied

Danger

Turning this functionality off removes all backup possibility's from our side. If a volume with no (none) snapshotpolicy, is accidentally removed we will not be able to recover the data of that volume.