update zh-translation: docs/concepts/storage/volume-snapshot-classes.md (#18528)

* update zh-translation: docs/concepts/storage/volume-snapshot-classes.md

* update

* fix review issues

* fix review issues
This commit is contained in:
helight
2020-01-09 21:49:45 +08:00
committed by Kubernetes Prow Robot
parent 6161de9914
commit 123df0124d
@@ -11,7 +11,6 @@ This document describes the concept of `VolumeSnapshotClass` in Kubernetes. Fami
with [volume snapshots](/docs/concepts/storage/volume-snapshots/) and with [volume snapshots](/docs/concepts/storage/volume-snapshots/) and
[storage classes](/docs/concepts/storage/storage-classes) is suggested. [storage classes](/docs/concepts/storage/storage-classes) is suggested.
--> -->
本文档描述了 Kubernetes 中 `VolumeSnapshotClass` 的概念。 建议熟悉[卷快照(Volume Snapshots](/docs/concepts/storage/volume-snapshots/)和[存储类(Storage Class](/docs/concepts/storage/storage-classes)。 本文档描述了 Kubernetes 中 `VolumeSnapshotClass` 的概念。 建议熟悉[卷快照(Volume Snapshots](/docs/concepts/storage/volume-snapshots/)和[存储类(Storage Class](/docs/concepts/storage/storage-classes)。
{{% /capture %}} {{% /capture %}}
@@ -26,15 +25,14 @@ Just like `StorageClass` provides a way for administrators to describe the "clas
of storage they offer when provisioning a volume, `VolumeSnapshotClass` provides a of storage they offer when provisioning a volume, `VolumeSnapshotClass` provides a
way to describe the "classes" of storage when provisioning a volume snapshot. way to describe the "classes" of storage when provisioning a volume snapshot.
--> -->
## 介绍 {#introduction}
## 介绍
就像 `StorageClass` 为管理员提供了一种在配置卷时描述存储“类”的方法,`VolumeSnapshotClass` 提供了一种在配置卷快照时描述存储“类”的方法。 就像 `StorageClass` 为管理员提供了一种在配置卷时描述存储“类”的方法,`VolumeSnapshotClass` 提供了一种在配置卷快照时描述存储“类”的方法。
<!-- <!--
## The VolumeSnapshotClass Resource ## The VolumeSnapshotClass Resource
Each `VolumeSnapshotClass` contains the fields `snapshotter` and `parameters`, Each `VolumeSnapshotClass` contains the fields `driver`, `deletionPolicy`, and `parameters`,
which are used when a `VolumeSnapshot` belonging to the class needs to be which are used when a `VolumeSnapshot` belonging to the class needs to be
dynamically provisioned. dynamically provisioned.
@@ -46,47 +44,57 @@ be updated once they are created.
Administrators can specify a default `VolumeSnapshotClass` just for VolumeSnapshots Administrators can specify a default `VolumeSnapshotClass` just for VolumeSnapshots
that don't request any particular class to bind to. that don't request any particular class to bind to.
--> -->
## VolumeSnapshotClass 资源 ## VolumeSnapshotClass 资源
每个 `VolumeSnapshotClass` 都包含 `snapshotter``parameters` 字段,当需要动态配置属于该类的 `VolumeSnapshot` 时使用。 每个 `VolumeSnapshotClass` 都包含 `driver``deletionPolicy``parameters` 字段,当需要动态配置属于该类的 `VolumeSnapshot` 时使用。
`VolumeSnapshotClass` 对象的名称很重要,是用户可以请求特定类的方式。 `VolumeSnapshotClass` 对象的名称很重要,是用户可以请求特定类的方式。
管理员在首次创建 `VolumeSnapshotClass` 对象时设置类的名称和其他参数,对象一旦创建就无法更新。 管理员在首次创建 `VolumeSnapshotClass` 对象时设置类的名称和其他参数,对象一旦创建就无法更新。
管理员可以为不请求任何特定类绑定的 VolumeSnapshots 指定默认的 `VolumeSnapshotClass` 管理员可以为不请求任何特定类绑定的 VolumeSnapshots 指定默认的 `VolumeSnapshotClass`
```yaml ```yaml
apiVersion: snapshot.storage.k8s.io/v1alpha1 apiVersion: snapshot.storage.k8s.io/v1beta1
kind: VolumeSnapshotClass kind: VolumeSnapshotClass
metadata: metadata:
name: csi-hostpath-snapclass name: csi-hostpath-snapclass
snapshotter: csi-hostpath driver: hostpath.csi.k8s.io
deletionPolicy: Delete
parameters: parameters:
``` ```
<!-- <!--
### Snapshotter ### Driver
Volume snapshot classes have a snapshotter that determines what CSI volume plugin is Volume snapshot classes have a driver that determines what CSI volume plugin is
used for provisioning VolumeSnapshots. This field must be specified. used for provisioning VolumeSnapshots. This field must be specified.
--> -->
### 驱动程序(#driver
### 快照生成器(Snapshotter 卷快照类有一个驱动程序,用于确定配置 VolumeSnapshot 的 CSI 卷插件。 必须指定此字段。
卷快照类具有一个快照生成器,用于确定配置 VolumeSnapshot 的 CSI 卷插件。 必须指定此字段。 <!--
### DeletionPolicy
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.
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.
-->
### 删除策略 {#deletion-policy}
卷快照类具有 `deletionPolicy` 属性。用户可以配置当所绑定的 `VolumeSnapshot` 对象将被删除时,如何处理 `VolumeSnapshotContent` 对象。卷快照的这个策略可以是 `Retain` 或者 `Delete`。这个策略字段必须指定。
如果删除策略是 `Delete`,那么底层的存储快照会和 `VolumeSnapshotContent` 对象一起删除。如果删除策略是 `Retain`,那么底层快照和 `VolumeSnapshotContent` 对象都会被保留。
<!-- <!--
## Parameters ## Parameters
Volume snapshot classes have parameters that describe volume snapshots belonging to Volume snapshot classes have parameters that describe volume snapshots belonging to
the volume snapshot class. Different parameters may be accepted depending on the the volume snapshot class. Different parameters may be accepted depending on the
`snapshotter`. `driver`.
--> -->
## 参数 {#parameters}
## 参数 卷快照类具有描述属于该卷快照类的卷快照的参数。 可根据 `driver` 接受不同的参数。
卷快照类具有描述属于卷快照类的卷快照参数。 可根据 `snapshotter` 接受不同的参数。
{{% /capture %}} {{% /capture %}}