Enable CSI Snapshot Support for Programmatic Creation of Longhorn Snapshots/Backups
If your Kubernetes Distribution Does Not Bundle the Snapshot Controller
- Download the files from because Longhorn v1.4.1 uses CSI external-snapshotter v5.0.1
- Do this once per cluster.
Install the Common Snapshot Controller:
- Download the files from because Longhorn v1.4.1 uses CSI external-snapshotter v5.0.1
- Run
kubectl create -f deploy/kubernetes/snapshot-controller
. - Do this once per cluster.
See the section from the kubernetes external-snapshotter git repo for additional information.
Add a Default VolumeSnapshotClass
Ensure the availability of the Snapshot CRDs. Afterwards create a default VolumeSnapshotClass
.