Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn] sync volume-snapshot-classes.md #49480

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
35 changes: 35 additions & 0 deletions content/zh-cn/docs/concepts/storage/volume-snapshot-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,41 @@ deletionPolicy: Delete
parameters:
```

<!--
If multiple CSI drivers exist, a default VolumeSnapshotClass can be specified
for each of them.
-->

如果存在多个 CSI 驱动程序,可以为每个驱动程序指定一个默认的 VolumeSnapshotClass。

<!--
### VolumeSnapshotClass dependencies

When you create a VolumeSnapshot without specifying a VolumeSnapshotClass, Kubernetes
automatically selects a default VolumeSnapshotClass that has a CSI driver matching
the CSI driver of the PVC’s StorageClass.

This behavior allows multiple default VolumeSnapshotClass objects to coexist in a cluster, as long as
each one is associated with a unique CSI driver.

Always ensure that there is only one default VolumeSnapshotClass for each CSI driver. If
multiple default VolumeSnapshotClass objects are created using the same CSI driver,
a VolumeSnapshot creation will fail because Kubernetes cannot determine which one to use.
-->

### VolumeSnapshotClass 依赖关系

当你创建一个 VolumeSnapshot 且未指定 VolumeSnapshotClass 时,
Kubernetes 会自动选择一个默认的 VolumeSnapshotClass,
该类与 PVC 的 StorageClass 所使用的 CSI 驱动程序匹配。

这种行为允许多个默认的 VolumeSnapshotClass 对象在集群中共存,
只要每个默认类都与唯一的 CSI 驱动程序进行关联。

始终确保每个 CSI 驱动程序只有一个默认的 VolumeSnapshotClass。
如果使用相同的 CSI 驱动程序创建了多个默认的 VolumeSnapshotClass 对象,
则创建 VolumeSnapshot 时会失败,因为 Kubernetes 无法确定使用哪个类。

<!--
### Driver

Expand Down