You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/concepts/storage/volume-snapshot-classes.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ weight: 30
13
13
14
14
<!-- overview -->
15
15
16
-
This document describes the concept of `VolumeSnapshotClass` in Kubernetes. Familiarity
16
+
This document describes the concept of VolumeSnapshotClass in Kubernetes. Familiarity
17
17
with [volume snapshots](/docs/concepts/storage/volume-snapshots/) and
18
18
[storage classes](/docs/concepts/storage/storage-classes) is suggested.
19
19
@@ -24,30 +24,30 @@ with [volume snapshots](/docs/concepts/storage/volume-snapshots/) and
24
24
25
25
## Introduction
26
26
27
-
Just like `StorageClass` provides a way for administrators to describe the "classes"
28
-
of storage they offer when provisioning a volume, `VolumeSnapshotClass` provides a
27
+
Just like StorageClass provides a way for administrators to describe the "classes"
28
+
of storage they offer when provisioning a volume, VolumeSnapshotClass provides a
29
29
way to describe the "classes" of storage when provisioning a volume snapshot.
30
30
31
31
## The VolumeSnapshotClass Resource
32
32
33
-
Each `VolumeSnapshotClass` contains the fields `driver`, `deletionPolicy`, and `parameters`,
34
-
which are used when a `VolumeSnapshot` belonging to the class needs to be
33
+
Each VolumeSnapshotClass contains the fields `driver`, `deletionPolicy`, and `parameters`,
34
+
which are used when a VolumeSnapshot belonging to the class needs to be
35
35
dynamically provisioned.
36
36
37
-
The name of a `VolumeSnapshotClass` object is significant, and is how users can
37
+
The name of a VolumeSnapshotClass object is significant, and is how users can
38
38
request a particular class. Administrators set the name and other parameters
39
-
of a class when first creating `VolumeSnapshotClass` objects, and the objects cannot
39
+
of a class when first creating VolumeSnapshotClass objects, and the objects cannot
40
40
be updated once they are created.
41
41
42
-
Administrators can specify a default `VolumeSnapshotClass` just for VolumeSnapshots
42
+
Administrators can specify a default VolumeSnapshotClass just for VolumeSnapshots
43
43
that don't request any particular class to bind to.
44
44
45
45
```yaml
46
46
apiVersion: snapshot.storage.k8s.io/v1beta1
47
47
kind: VolumeSnapshotClass
48
48
metadata:
49
49
name: csi-hostpath-snapclass
50
-
driver: hostpath.csi.k8s.io
50
+
driver: hostpath.csi.k8s.io
51
51
deletionPolicy: Delete
52
52
parameters:
53
53
```
@@ -59,9 +59,9 @@ used for provisioning VolumeSnapshots. This field must be specified.
59
59
60
60
### DeletionPolicy
61
61
62
-
Volume snapshot classes have a deletionPolicy. It enables you to configure what happens to a `VolumeSnapshotContent` when the `VolumeSnapshot` object it is bound to is to be deleted. The deletionPolicy of a volume snapshot can either be `Retain` or `Delete`. This field must be specified.
62
+
Volume snapshot classes have a deletionPolicy. It enables you to configure what happens to a VolumeSnapshotContent when the VolumeSnapshot object it is bound to is to be deleted. The deletionPolicy of a volume snapshot can either be `Retain` or `Delete`. This field must be specified.
63
63
64
-
If the deletionPolicy is `Delete`, then the underlying storage snapshot will be deleted along with the `VolumeSnapshotContent` object. If the deletionPolicy is `Retain`, then both the underlying snapshot and `VolumeSnapshotContent` remain.
64
+
If the deletionPolicy is `Delete`, then the underlying storage snapshot will be deleted along with the VolumeSnapshotContent object. If the deletionPolicy is `Retain`, then both the underlying snapshot and VolumeSnapshotContent remain.
0 commit comments