Search…
Installing VolumeSnapshot CRDs
Refer to this page to install VolumeSnapshot CRDs

Prerequisite

Before attempting to install VolumeSnapshot CRDs, it is important to confirm that the CRDs are not already present on the system. To do this, run the following command:
1
kubectl api-resources | grep volumesnapshot
Copied!
If CRDs are already present, the output should be similar to the output displayed below. The second column displays the version of the CRD installed (v1 in this case). Ensure that it is the correct version required by the CSI driver being used.
1
volumesnapshotclasses snapshot.storage.k8s.io/v1 false VolumeSnapshotClass
2
volumesnapshotcontents snapshot.storage.k8s.io/v1 false VolumeSnapshotContent
3
volumesnapshots snapshot.storage.k8s.io/v1 true VolumeSnapshot
Copied!

Installing CRDs

Install only one of the following versions of VolumeSnapshot CRDs:
  • Make sure to only install one version of VolumeSnapshot CRDs; i.e. do not install both v1 and v1beta1 CRDs .
  • Ensure that it is the correct VolumeSnapshot CRD version required by the CSI driver being used.
  • For Kubernetes v 1.20+, install v1. For Kubernetes v1.19, install v1beta1.

Install v1 CRDs

  1. 1.
    Download the v1.yaml file provided in the Kubernetes documentation.
  2. 2.
    Run the command: kubectl apply -f v1.yaml
  3. 3.
    Assuming successful execution of the commands above, the v1 VolumeSnapshot CRDs should now be available on the system. Check this, by performing the Prerequisite step again.

Install v1beta1 CRDs

  1. 1.
    To install v1beta1, follow the instructions in this Kubernetes documentation.
  2. 2.
    Assuming successful execution of the commands above, the v1beta1 VolumeSnapshot CRDs should now be available on the system. You can check this, by performing the Prerequisite check again.