File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
content/en/docs/concepts/storage Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,27 @@ request a particular class. Administrators set the name and other parameters
39
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
43
- that don't request any particular class to bind to.
42
+ ``` yaml
43
+ apiVersion : snapshot.storage.k8s.io/v1beta1
44
+ kind : VolumeSnapshotClass
45
+ metadata :
46
+ name : csi-hostpath-snapclass
47
+ driver : hostpath.csi.k8s.io
48
+ deletionPolicy : Delete
49
+ parameters :
50
+ ` ` `
51
+
52
+ Administrators can specify a default VolumeSnapshotClass for VolumeSnapshots
53
+ that don't request any particular class to bind to by adding the
54
+ ` snapshot.storage.kubernetes.io/is-default-class: "true"` annotation:
44
55
45
56
` ` ` yaml
46
57
apiVersion: snapshot.storage.k8s.io/v1beta1
47
58
kind: VolumeSnapshotClass
48
59
metadata:
49
60
name: csi-hostpath-snapclass
61
+ annotations:
62
+ snapshot.storage.kubernetes.io/is-default-class: "true"
50
63
driver: hostpath.csi.k8s.io
51
64
deletionPolicy: Delete
52
65
parameters:
You can’t perform that action at this time.
0 commit comments