Skip to content

Commit 1a8f1c4

Browse files
authored
Merge pull request #49480 from Eason1118/patch-1
[zh-cn] sync volume-snapshot-classes.md
2 parents 18206ce + de09922 commit 1a8f1c4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

content/zh-cn/docs/concepts/storage/volume-snapshot-classes.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,39 @@ deletionPolicy: Delete
9191
parameters:
9292
```
9393
94+
<!--
95+
If multiple CSI drivers exist, a default VolumeSnapshotClass can be specified
96+
for each of them.
97+
-->
98+
如果存在多个 CSI 驱动程序,可以为每个驱动程序指定一个默认的 VolumeSnapshotClass。
99+
100+
<!--
101+
### VolumeSnapshotClass dependencies
102+
103+
When you create a VolumeSnapshot without specifying a VolumeSnapshotClass, Kubernetes
104+
automatically selects a default VolumeSnapshotClass that has a CSI driver matching
105+
the CSI driver of the PVC’s StorageClass.
106+
107+
This behavior allows multiple default VolumeSnapshotClass objects to coexist in a cluster, as long as
108+
each one is associated with a unique CSI driver.
109+
110+
Always ensure that there is only one default VolumeSnapshotClass for each CSI driver. If
111+
multiple default VolumeSnapshotClass objects are created using the same CSI driver,
112+
a VolumeSnapshot creation will fail because Kubernetes cannot determine which one to use.
113+
-->
114+
### VolumeSnapshotClass 依赖关系 {#volumesnapshotclass-dependencies}
115+
116+
当你创建一个 VolumeSnapshot 且未指定 VolumeSnapshotClass 时,
117+
Kubernetes 会自动选择一个默认的 VolumeSnapshotClass,
118+
该类与 PVC 的 StorageClass 所使用的 CSI 驱动程序匹配。
119+
120+
这种行为允许多个默认的 VolumeSnapshotClass 对象在集群中共存,
121+
只要每个默认类都与唯一的 CSI 驱动程序进行关联。
122+
123+
请始终确保每个 CSI 驱动程序只有一个默认的 VolumeSnapshotClass。
124+
如果使用相同的 CSI 驱动程序创建了多个默认的 VolumeSnapshotClass 对象,
125+
则创建 VolumeSnapshot 时会失败,因为 Kubernetes 无法确定使用哪个类。
126+
94127
<!--
95128
### Driver
96129

0 commit comments

Comments
 (0)