diff --git a/content/zh-cn/docs/concepts/storage/volume-snapshot-classes.md b/content/zh-cn/docs/concepts/storage/volume-snapshot-classes.md index c5d21dbca0241..eb0dd92f1f325 100644 --- a/content/zh-cn/docs/concepts/storage/volume-snapshot-classes.md +++ b/content/zh-cn/docs/concepts/storage/volume-snapshot-classes.md @@ -91,6 +91,41 @@ deletionPolicy: Delete parameters: ``` + + +如果存在多个 CSI 驱动程序,可以为每个驱动程序指定一个默认的 VolumeSnapshotClass。 + + + +### VolumeSnapshotClass 依赖关系 + +当你创建一个 VolumeSnapshot 且未指定 VolumeSnapshotClass 时, +Kubernetes 会自动选择一个默认的 VolumeSnapshotClass, +该类与 PVC 的 StorageClass 所使用的 CSI 驱动程序匹配。 + +这种行为允许多个默认的 VolumeSnapshotClass 对象在集群中共存, +只要每个默认类都与一个且唯一的 CSI 驱动程序关联。 + +始终确保每个 CSI 驱动程序只有一个默认的 VolumeSnapshotClass。 +如果使用相同的 CSI 驱动程序创建了多个默认的 VolumeSnapshotClass 对象, +则创建 VolumeSnapshot 时会失败,因为 Kubernetes 无法确定使用哪个类。 +