external-snapshotter (CSI snapshot control plane)
Installs the cluster-singleton kubernetes-csi/external-snapshotter:
- the
snapshot.storage.k8s.ioCRDs —VolumeSnapshot,VolumeSnapshotContent,VolumeSnapshotClass(v1, GA); - the snapshot-controller Deployment (into
kube-system, the upstream default) that reconciles those objects against any CSI driver'sCreateSnapshot/DeleteSnapshot.
Neither k3s nor the Longhorn chart ships this. It is a prerequisite for:
VolumeSnapshotClass(driver.longhorn.io) — see../longhorn/volumesnapshotclass.yaml(applied byplatform-config).- CDI snapshot smart-clone — the CDI
StorageProfiles setcloneStrategy: snapshot(see../kubevirt/cdi-storageprofiles.yaml); CDI clones VM disks by taking a CSIVolumeSnapshotinstead of a slow host-assisted byte copy. - Clearing the
CDIDefaultStorageClassDegradedalert — a default virtualization StorageClass must support both smart-clone and ReadWriteMany.
Wiring
- Pass:
platform(controllers). Registers the CRDs. - The
VolumeSnapshotClassCR that consumes the CRDs lives in theplatform-configpass (dependsOn: platform), per the controllers/configs split. - The CDI
StorageProfiles live one pass further out, inplatform-config-cdi(dependsOn: platform-config) —storageprofiles.cdi.kubevirt.iois created by cdi-operator only after it reconciles theCDICR, so they cannot share a pass with it. Seeclusters/base/platform-config-cdi.yaml.
Version
Pinned to v8.2.0 (Renovate-maintained). The v8.x line aligned to Kubernetes 1.31 at
v8.1.0; this cluster is now k3s v1.36.4, so the pin should be re-checked for 1.36 (a newer
external-snapshotter line may be the version-matched choice) — do not treat v8.2.0 as verified
against 1.36 yet. The snapshot-controller image is re-pinned to the same tag via the kustomization
images transformer (the upstream setup manifest lags on the image tag).