1
1
---
2
2
title : 存储类
3
3
content_type : concept
4
- weight : 30
4
+ weight : 40
5
5
---
6
6
<!--
7
7
reviewers:
@@ -11,7 +11,7 @@ reviewers:
11
11
- msau42
12
12
title: Storage Classes
13
13
content_type: concept
14
- weight: 30
14
+ weight: 40
15
15
-->
16
16
17
17
<!-- overview -->
@@ -52,7 +52,7 @@ class needs to be dynamically provisioned.
52
52
## StorageClass 资源 {#the-storageclass-resource}
53
53
54
54
每个 StorageClass 都包含 ` provisioner ` 、` parameters ` 和 ` reclaimPolicy ` 字段,
55
- 这些字段会在 StorageClass 需要动态分配 PersistentVolume 时会使用到。
55
+ 这些字段会在 StorageClass 需要动态制备 PersistentVolume 时会使用到。
56
56
57
57
<!--
58
58
The name of a StorageClass object is significant, and is how users can
@@ -208,10 +208,10 @@ Volume type | Required Kubernetes version
208
208
209
209
{{< /table >}}
210
210
211
+ {{< note >}}
211
212
<!--
212
213
You can only use the volume expansion feature to grow a Volume, not to shrink it.
213
214
-->
214
- {{< note >}}
215
215
此功能仅可用于扩容卷,不能用于缩小卷。
216
216
{{< /note >}}
217
217
@@ -467,7 +467,7 @@ parameters:
467
467
` zone` and `zones` parameters are deprecated and replaced with
468
468
[allowedTopologies](#allowed-topologies)
469
469
-->
470
- ` zone` 和 `zones` 已被弃用并被 [允许的拓扑结构](#allowed-topologies) 取代。
470
+ ` zone` 和 `zones` 已被弃用并被[允许的拓扑结构](#allowed-topologies)取代。
471
471
{{< /note >}}
472
472
473
473
# ## GCE PD {#gce-pd}
@@ -503,7 +503,7 @@ parameters:
503
503
* `zones`(弃用):逗号分隔的 GCE 区域列表。如果没有指定 `zone` 和 `zones`,
504
504
通常卷会在 Kubernetes 集群节点所在的活动区域中轮询调度(round-robin)分配。
505
505
` zone` 和 `zones` 参数不能同时使用。
506
- * `fstype`: `ext4` 或 `xfs`。 默认: `ext4`。宿主机操作系统必须支持所定义的文件系统类型。
506
+ * `fstype`: `ext4` 或 `xfs`。 默认: `ext4`。宿主机操作系统必须支持所定义的文件系统类型。
507
507
* `replication-type`:`none` 或者 `regional-pd`。默认值:`none`。
508
508
509
509
<!--
@@ -530,15 +530,18 @@ using `allowedTopologies`.
530
530
区域性持久化磁盘会在两个区域里制备。 其中一个区域是 Pod 所在区域。
531
531
另一个区域是会在集群管理的区域中任意选择。磁盘区域可以通过 `allowedTopologies` 加以限制。
532
532
533
+ {{< note >}}
533
534
<!--
534
535
` zone` and `zones` parameters are deprecated and replaced with
535
536
[allowedTopologies](#allowed-topologies)
536
537
-->
537
- {{< note >}}
538
538
` zone` 和 `zones` 已被弃用并被 [allowedTopologies](#allowed-topologies) 取代。
539
539
{{< /note >}}
540
540
541
- # ## Glusterfs
541
+ <!--
542
+ # ## Glusterfs (deprecated) {#glusterfs}
543
+ -->
544
+ # ## Glusterfs(已弃用) {#glusterfs}
542
545
543
546
` ` ` yaml
544
547
apiVersion: storage.k8s.io/v1
@@ -659,11 +662,11 @@ parameters:
659
662
deleted when the persistent volume claim is deleted.
660
663
-->
661
664
* `volumetype`:卷的类型及其参数可以用这个可选值进行配置。如果未声明卷类型,则由制备器决定卷的类型。
662
- 例如:
663
665
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`
667
670
668
671
有关可用的卷类型和管理选项,
669
672
请参阅[管理指南](https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/)。
@@ -726,10 +729,10 @@ parameters:
726
729
-->
727
730
* `availability`:可用区域。如果没有指定,通常卷会在 Kubernetes 集群节点所在的活动区域中轮转调度。
728
731
732
+ {{< note >}}
729
733
<!--
730
734
This internal provisioner of OpenStack is deprecated. Please use [the external cloud provider for OpenStack](https://github.com/kubernetes/cloud-provider-openstack).
731
735
-->
732
- {{< note >}}
733
736
{{< feature-state state="deprecated" for_k8s_version="1.11" >}}
734
737
OpenStack 的内部驱动已经被弃用。请使用
735
738
[OpenStack 的外部云驱动](https://github.com/kubernetes/cloud-provider-openstack)。
@@ -745,7 +748,7 @@ There are two types of provisioners for vSphere storage classes:
745
748
746
749
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).
747
750
-->
748
- vSphere 存储类有两种制备器
751
+ vSphere 存储类有两种制备器:
749
752
750
753
- [CSI 制备器](#vsphere-provisioner-csi):`csi.vsphere.vmware.com`
751
754
- [vCP 制备器](#vcp-provisioner):`kubernetes.io/vsphere-volume`
@@ -773,7 +776,7 @@ The following examples use the VMware Cloud Provider (vCP) StorageClass provisio
773
776
-->
774
777
# ### vCP 制备器 {#vcp-provisioner}
775
778
776
- 以下示例使用 VMware Cloud Provider (vCP) StorageClass 调度器 。
779
+ 以下示例使用 VMware Cloud Provider (vCP) StorageClass 制备器 。
777
780
778
781
<!--
779
782
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
793
796
<!--
794
797
`diskformat` : ` thin` , `zeroedthick` and `eagerzeroedthick`. Default: `"thin"`.
795
798
-->
796
- `diskformat` : ` thin` , `zeroedthick` 和 `eagerzeroedthick`。默认值: `"thin"`。
799
+ ` diskformat` : `thin`、 `zeroedthick` 和 `eagerzeroedthick`。默认值: `"thin"`。
797
800
798
801
<!--
799
802
2. Create a StorageClass with a disk format on a user specified datastore.
@@ -927,7 +930,7 @@ parameters:
927
930
* `adminSecret`:`adminId` 的 Secret 名称。该参数是必需的。
928
931
提供的 secret 必须有值为 "kubernetes.io/rbd" 的 type 参数。
929
932
* `adminSecretNamespace`:`adminSecret` 的命名空间。默认是 "default"。
930
- * `pool`: Ceph RBD 池. 默认是 "rbd"。
933
+ * `pool`: Ceph RBD 池。 默认是 "rbd"。
931
934
* `userId`:Ceph 客户端 ID,用于映射 RBD 镜像。默认与 `adminId` 相同。
932
935
933
936
<!--
@@ -1029,7 +1032,7 @@ parameters:
1029
1032
* `kind`:可能的值是 `shared`、`dedicated` 和 `managed`(默认)。
1030
1033
当 `kind` 的值是 `shared` 时,所有非托管磁盘都在集群的同一个资源组中的几个共享存储帐户中创建。
1031
1034
当 `kind` 的值是 `dedicated` 时,将为在集群的同一个资源组中新的非托管磁盘创建新的专用存储帐户。
1032
- * `resourceGroup`: 指定要创建 Azure 磁盘所属的资源组。必须是已存在的资源组名称。
1035
+ * `resourceGroup`: 指定要创建 Azure 磁盘所属的资源组。必须是已存在的资源组名称。
1033
1036
若未指定资源组,磁盘会默认放入与当前 Kubernetes 集群相同的资源组中。
1034
1037
<!--
1035
1038
- Premium VM can attach both Standard_LRS and Premium_LRS disks, while Standard
0 commit comments