mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// microshift/volume-snapshots-microshift.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
[id="microshift-volume-snapshot-classes_{context}"]
|
|
= Volume snapshot classes
|
|
|
|
Snapshotting is a CSI storage feature supported by LVMS. To enable dynamic snapshotting, at least one `VolumeSnapshotClass` configuration file must be present on the node.
|
|
|
|
[IMPORTANT]
|
|
====
|
|
You must enable thin logical volumes to take logical volume snapshots.
|
|
====
|
|
|
|
.Example `VolumeSnapshotClass` configuration file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: snapshot.storage.k8s.io/v1
|
|
kind: VolumeSnapshotClass
|
|
metadata:
|
|
name: topolvm-snapclass
|
|
annotations:
|
|
snapshot.storage.kubernetes.io/is-default-class: "true" <1>
|
|
driver: topolvm.io <2>
|
|
deletionPolicy: Delete <3>
|
|
----
|
|
<1> Determines which `VolumeSnapshotClass` configuration file to use when none is specified by `VolumeSnapshot`, which is a request for snapshot of a volume by a user.
|
|
<2> Identifies which snapshot provisioner should manage the requests for snapshots of a volume by a user for this class.
|
|
<3> Determines whether `VolumeSnapshotContent` objects and the backing snapshots are kept or deleted when a bound `VolumeSnapshot` is deleted. Valid values are `Retain` or `Delete`.
|