Skip to content

Commit c4dd38e

Browse files
authored
Merge pull request #37737 from windsonsea/stocla
[zh] sync /storage/storage-classes.md
2 parents cba3864 + 1879de3 commit c4dd38e

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

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

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 存储类
33
content_type: concept
4-
weight: 30
4+
weight: 40
55
---
66
<!--
77
reviewers:
@@ -11,7 +11,7 @@ reviewers:
1111
- msau42
1212
title: Storage Classes
1313
content_type: concept
14-
weight: 30
14+
weight: 40
1515
-->
1616

1717
<!-- overview -->
@@ -52,7 +52,7 @@ class needs to be dynamically provisioned.
5252
## StorageClass 资源 {#the-storageclass-resource}
5353

5454
每个 StorageClass 都包含 `provisioner``parameters``reclaimPolicy` 字段,
55-
这些字段会在 StorageClass 需要动态分配 PersistentVolume 时会使用到。
55+
这些字段会在 StorageClass 需要动态制备 PersistentVolume 时会使用到。
5656

5757
<!--
5858
The name of a StorageClass object is significant, and is how users can
@@ -208,10 +208,10 @@ Volume type | Required Kubernetes version
208208

209209
{{< /table >}}
210210

211+
{{< note >}}
211212
<!--
212213
You can only use the volume expansion feature to grow a Volume, not to shrink it.
213214
-->
214-
{{< note >}}
215215
此功能仅可用于扩容卷,不能用于缩小卷。
216216
{{< /note >}}
217217

@@ -467,7 +467,7 @@ parameters:
467467
`zone` and `zones` parameters are deprecated and replaced with
468468
[allowedTopologies](#allowed-topologies)
469469
-->
470-
`zone` 和 `zones` 已被弃用并被 [允许的拓扑结构](#allowed-topologies) 取代。
470+
`zone` 和 `zones` 已被弃用并被[允许的拓扑结构](#allowed-topologies)取代。
471471
{{< /note >}}
472472

473473
### GCE PD {#gce-pd}
@@ -503,7 +503,7 @@ parameters:
503503
* `zones`(弃用):逗号分隔的 GCE 区域列表。如果没有指定 `zone` 和 `zones`,
504504
通常卷会在 Kubernetes 集群节点所在的活动区域中轮询调度(round-robin)分配。
505505
`zone` 和 `zones` 参数不能同时使用。
506-
* `fstype`: `ext4` 或 `xfs`。 默认: `ext4`。宿主机操作系统必须支持所定义的文件系统类型。
506+
* `fstype``ext4` 或 `xfs`。 默认`ext4`。宿主机操作系统必须支持所定义的文件系统类型。
507507
* `replication-type`:`none` 或者 `regional-pd`。默认值:`none`。
508508

509509
<!--
@@ -530,15 +530,18 @@ using `allowedTopologies`.
530530
区域性持久化磁盘会在两个区域里制备。 其中一个区域是 Pod 所在区域。
531531
另一个区域是会在集群管理的区域中任意选择。磁盘区域可以通过 `allowedTopologies` 加以限制。
532532

533+
{{< note >}}
533534
<!--
534535
`zone` and `zones` parameters are deprecated and replaced with
535536
[allowedTopologies](#allowed-topologies)
536537
-->
537-
{{< note >}}
538538
`zone` 和 `zones` 已被弃用并被 [allowedTopologies](#allowed-topologies) 取代。
539539
{{< /note >}}
540540

541-
### Glusterfs
541+
<!--
542+
### Glusterfs (deprecated) {#glusterfs}
543+
-->
544+
### Glusterfs(已弃用) {#glusterfs}
542545

543546
```yaml
544547
apiVersion: storage.k8s.io/v1
@@ -659,11 +662,11 @@ parameters:
659662
deleted when the persistent volume claim is deleted.
660663
-->
661664
* `volumetype`:卷的类型及其参数可以用这个可选值进行配置。如果未声明卷类型,则由制备器决定卷的类型。
662-
例如:
663665
664-
* 'Replica volume': `volumetype: replicate:3` 其中 '3' 是 replica 数量。
665-
* 'Disperse/EC volume': `volumetype: disperse:4:2` 其中 '4' 是数据,'2' 是冗余数量。
666-
* 'Distribute volume': `volumetype: none`
666+
例如:
667+
* 'Replica volume':`volumetype: replicate:3` 其中 '3' 是 replica 数量。
668+
* 'Disperse/EC volume':`volumetype: disperse:4:2` 其中 '4' 是数据,'2' 是冗余数量。
669+
* 'Distribute volume':`volumetype: none`
667670
668671
有关可用的卷类型和管理选项,
669672
请参阅[管理指南](https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/)。
@@ -726,10 +729,10 @@ parameters:
726729
-->
727730
* `availability`:可用区域。如果没有指定,通常卷会在 Kubernetes 集群节点所在的活动区域中轮转调度。
728731

732+
{{< note >}}
729733
<!--
730734
This internal provisioner of OpenStack is deprecated. Please use [the external cloud provider for OpenStack](https://github.com/kubernetes/cloud-provider-openstack).
731735
-->
732-
{{< note >}}
733736
{{< feature-state state="deprecated" for_k8s_version="1.11" >}}
734737
OpenStack 的内部驱动已经被弃用。请使用
735738
[OpenStack 的外部云驱动](https://github.com/kubernetes/cloud-provider-openstack)。
@@ -745,7 +748,7 @@ There are two types of provisioners for vSphere storage classes:
745748

746749
In-tree provisioners are [deprecated](/blog/2019/12/09/kubernetes-1-17-feature-csi-migration-beta/#why-are-we-migrating-in-tree-plugins-to-csi). For more information on the CSI provisioner, see [Kubernetes vSphere CSI Driver](https://vsphere-csi-driver.sigs.k8s.io/) and [vSphereVolume CSI migration](/docs/concepts/storage/volumes/#vsphere-csi-migration).
747750
-->
748-
vSphere 存储类有两种制备器
751+
vSphere 存储类有两种制备器
749752

750753
- [CSI 制备器](#vsphere-provisioner-csi):`csi.vsphere.vmware.com`
751754
- [vCP 制备器](#vcp-provisioner):`kubernetes.io/vsphere-volume`
@@ -773,7 +776,7 @@ The following examples use the VMware Cloud Provider (vCP) StorageClass provisio
773776
-->
774777
#### vCP 制备器 {#vcp-provisioner}
775778

776-
以下示例使用 VMware Cloud Provider (vCP) StorageClass 调度器
779+
以下示例使用 VMware Cloud Provider (vCP) StorageClass 制备器
777780

778781
<!--
779782
1. Create a StorageClass with a user specified disk format.
@@ -793,7 +796,7 @@ The following examples use the VMware Cloud Provider (vCP) StorageClass provisio
793796
<!--
794797
`diskformat`: `thin`, `zeroedthick` and `eagerzeroedthick`. Default: `"thin"`.
795798
-->
796-
`diskformat`: `thin`, `zeroedthick` 和 `eagerzeroedthick`。默认值: `"thin"`。
799+
`diskformat``thin``zeroedthick` 和 `eagerzeroedthick`。默认值`"thin"`。
797800

798801
<!--
799802
2. Create a StorageClass with a disk format on a user specified datastore.
@@ -927,7 +930,7 @@ parameters:
927930
* `adminSecret`:`adminId` 的 Secret 名称。该参数是必需的。
928931
提供的 secret 必须有值为 "kubernetes.io/rbd" 的 type 参数。
929932
* `adminSecretNamespace`:`adminSecret` 的命名空间。默认是 "default"。
930-
* `pool`: Ceph RBD 池. 默认是 "rbd"。
933+
* `pool`Ceph RBD 池默认是 "rbd"。
931934
* `userId`:Ceph 客户端 ID,用于映射 RBD 镜像。默认与 `adminId` 相同。
932935

933936
<!--
@@ -1029,7 +1032,7 @@ parameters:
10291032
* `kind`:可能的值是 `shared`、`dedicated` 和 `managed`(默认)。
10301033
当 `kind` 的值是 `shared` 时,所有非托管磁盘都在集群的同一个资源组中的几个共享存储帐户中创建。
10311034
当 `kind` 的值是 `dedicated` 时,将为在集群的同一个资源组中新的非托管磁盘创建新的专用存储帐户。
1032-
* `resourceGroup`: 指定要创建 Azure 磁盘所属的资源组。必须是已存在的资源组名称。
1035+
* `resourceGroup`指定要创建 Azure 磁盘所属的资源组。必须是已存在的资源组名称。
10331036
若未指定资源组,磁盘会默认放入与当前 Kubernetes 集群相同的资源组中。
10341037
<!--
10351038
- Premium VM can attach both Standard_LRS and Premium_LRS disks, while Standard

0 commit comments

Comments
 (0)