Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions modules/persistent-storage-csi-snapshots-create.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ apiVersion: snapshot.storage.k8s.io
kind: VolumeSnapshotClass <1>
metadata:
name: csi-hostpath-snap
annotations:
snapshot.storage.kubernetes.io/is-default-class: "true" <2>
driver: hostpath.csi.k8s.io
deletionPolicy: Delete
----
<1> Allows you to specify different attributes belonging to a VolumeSnapshot.
<2> Optional. This annotation can be used to create a default VolumeSnapshotClass. This object will be used when VolumeSnapshot does not specify any explicit volumeSnapshotClassName.

+
. Create the object you saved in the previous step by entering the following command:
Expand All @@ -63,12 +60,12 @@ spec:
source:
persistentVolumeClaimName: myclaim <2>
----

<1> The request for a particular class by the volume snapshot. If the parameter is not specified, the default class is used.
+
<1> The request for a particular class by the volume snapshot.
+
[NOTE]
====
If no default class is set and `volumeSnapshotClassName` is empty, then no snapshot is created.
If `volumeSnapshotClassName` is empty, then no snapshot is created.
====
+
<2> The name of the PersistentVolumeClaim object bound to a persistent volume. This defines what you want to create a snapshot of. Required for dynamically provisioning a snapshot.
Expand Down