Enable CSI Snapshot Support for Programmatic Creation of Longhorn Snapshots/Backups

    If your Kubernetes Distribution Does Not Bundle the Snapshot Controller

    1. Download the files from because Longhorn v1.4.1 uses CSI external-snapshotter v5.0.1
    2. Do this once per cluster.

    Install the Common Snapshot Controller:

    1. Download the files from because Longhorn v1.4.1 uses CSI external-snapshotter v5.0.1
    2. Run kubectl create -f deploy/kubernetes/snapshot-controller.
    3. 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.