Installing VolumeSnapshot CRDs

Refer to this page to install VolumeSnapshot CRDs


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:

kubectl api-resources | grep volumesnapshot

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 (v1beta1 in this case). Ensure that it is the correct version required by the CSI driver being used.

volumesnapshotclasses        false        VolumeSnapshotClass
volumesnapshotcontents        false        VolumeSnapshotContent
volumesnapshots        true         VolumeSnapshot

Installing CRDs

  • Make sure to only install one version of VolumeSnapshot CRDs.

  1. Navigate and read the external-snapshotter GitHub project provided in the Kubernetes documentation. This is compatible with both v1.19 and v1.20+.

  2. Run the following three commands to install directly:

kubectl apply -f
kubectl apply -f
kubectl apply -f

3. Assuming successful execution of the commands above, the stated version of VolumeSnapshot CRDs should be available on the system. Check this by performing the Prerequisite step again.