@@ -41,7 +41,7 @@ This document describes _persistent volumes_ in Kubernetes. Familiarity with
41
41
and [VolumeAttributesClasses](/docs/concepts/storage/volume-attributes-classes/) is suggested.
42
42
-->
43
43
本文描述 Kubernetes 中的** 持久卷(Persistent Volumes)** 。
44
- 建议先熟悉[ 卷(volume )] ( /zh-cn/docs/concepts/storage/volumes/ ) 、
44
+ 建议先熟悉[ 卷(Volume )] ( /zh-cn/docs/concepts/storage/volumes/ ) 、
45
45
[ 存储类(StorageClass)] ( /zh-cn/docs/concepts/storage/storage-classes/ ) 和
46
46
[ 卷属性类(VolumeAttributesClass)] ( /zh-cn/docs/concepts/storage/volume-attributes-classes/ ) 。
47
47
@@ -565,7 +565,7 @@ in the cluster. However, if you want a PVC to bind to a specific PV, you need to
565
565
-->
566
566
# ## 预留 PersistentVolume {#reserving-a-persistentvolume}
567
567
568
- 控制平面可以在集群中[将 PersistentVolumeClaims 绑定到匹配的 PersistentVolumes ](#binding)。
568
+ 控制平面可以在集群中[将 PersistentVolumeClaim 绑定到匹配的 PersistentVolume ](#binding)。
569
569
但是,如果你希望 PVC 绑定到特定 PV,则需要预先绑定它们。
570
570
571
571
<!--
@@ -642,7 +642,7 @@ This is useful if you want to consume PersistentVolumes that have their `persist
642
642
to `Retain`, including cases where you are reusing an existing PV.
643
643
-->
644
644
如果你想要使用 `persistentVolumeReclaimPolicy` 属性设置为 `Retain` 的 PersistentVolume 卷时,
645
- 包括你希望复用现有的 PV 卷时,这点是很有用的
645
+ 包括你希望复用现有的 PV 卷时,这点是很有用的。
646
646
647
647
<!--
648
648
# ## Expanding Persistent Volumes Claims
@@ -670,7 +670,7 @@ volme types)
670
670
<!--
671
671
You can only expand a PVC if its storage class's `allowVolumeExpansion` field is set to true.
672
672
-->
673
- 只有当 PVC 的存储类中将 `allowVolumeExpansion` 设置为 true 时,你才可以扩充该 PVC 申领 。
673
+ 只有当 PVC 的存储类中将 `allowVolumeExpansion` 设置为 true 时,你才可以扩充该 PVC。
674
674
675
675
` ` ` yaml
676
676
apiVersion: storage.k8s.io/v1
@@ -797,7 +797,14 @@ Kubernetes provides following methods of recovering from such failures.
797
797
直到用户或集群管理员采取一些措施。这种情况是不希望发生的,因此 Kubernetes
798
798
提供了以下从此类故障中恢复的方法。
799
799
800
- {{< tabs name="recovery_methods" >}}
800
+ <!--
801
+ tabs name="recovery_methods"
802
+ -->
803
+ {{< tabs name="恢复方法" >}}
804
+
805
+ <!--
806
+ tab name="Manually with Cluster Administrator access"
807
+ -->
801
808
{{% tab name="集群管理员手动处理" %}}
802
809
803
810
<!--
@@ -830,24 +837,14 @@ administrator intervention.
830
837
5. 不要忘记恢复 PV 卷上设置的回收策略。
831
838
832
839
{{% /tab %}}
833
- {{% tab name="通过请求扩展为更小尺寸" %}}
834
- {{< feature-state feature_gate_name="RecoverVolumeExpansionFailure" >}}
835
840
836
- {{< note >}}
837
841
<!--
838
- Recovery from failing PVC expansion by users (`RecoverVolumeExpansionFailure`) is available as an beta feature
839
- since Kubernetes 1.32 and should be enabled by default. Refer to the
840
- [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
841
- documentation for more information.
842
+ tab name="By requesting expansion to smaller size"
842
843
-->
843
- Kubernetes 从 1.32 版本开始将允许用户恢复失败的 PVC 扩展(`RecoverVolumeExpansionFailure`),
844
- 这一特性目前为 Beta 阶段。
845
- 可参考[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
846
- 文档了解更多信息。
847
- {{< /note >}}
844
+ {{% tab name="通过请求扩展为更小尺寸" %}}
848
845
849
846
<!--
850
- When using `RecoverVolumeExpansionFailure` feature, if expansion has failed for a PVC, you can retry expansion with a
847
+ If expansion has failed for a PVC, you can retry expansion with a
851
848
smaller size than the previously requested value. To request a new expansion attempt with a
852
849
smaller proposed size, edit `.spec.resources` for that PVC and choose a value that is less than the
853
850
value you previously tried.
@@ -856,8 +853,7 @@ If that has happened, or you suspect that it might have, you can retry expansion
856
853
size that is within the capacity limits of underlying storage provider. You can monitor status of
857
854
resize operation by watching `.status.allocatedResourceStatuses` and events on the PVC.
858
855
-->
859
- 使用 `RecoverVolumeExpansionFailure` 特性时,如果 PVC 扩展失败,
860
- 你可以使用比先前请求的值更小的尺寸来重试扩展。
856
+ 如果 PVC 扩展失败,你可以使用比先前请求值更小的值来重试扩展。
861
857
要使用一个更小的尺寸尝试请求新的扩展,请编辑该 PVC 的 `.spec.resources`
862
858
并选择一个比你之前所尝试的值更小的值。
863
859
如果由于容量限制而无法成功扩展至更高的值,这将很有用。
@@ -871,9 +867,8 @@ although you can specify a lower amount of storage than what was requested previ
871
867
the new value must still be higher than `.status.capacity`.
872
868
Kubernetes does not support shrinking a PVC to less than its current size.
873
869
-->
874
- 请注意,
875
- 尽管你可以指定比之前的请求更低的存储量,新值必须仍然高于 `.status.capacity`。
876
- Kubernetes 不支持将 PVC 缩小到小于其当前的尺寸。
870
+ 请注意,尽管你可以指定比之前的请求更低的存储量,新值必须仍然高于
871
+ ` .status.capacity` 。Kubernetes 不支持将 PVC 缩容到小于其当前值。
877
872
878
873
{{% /tab %}}
879
874
{{% /tabs %}}
@@ -1158,10 +1153,6 @@ The `ReadWriteOncePod` access mode is only supported for
1158
1153
1.22+. To use this feature you will need to update the following
1159
1154
[CSI sidecars](https://kubernetes-csi.github.io/docs/sidecar-containers.html)
1160
1155
to these versions or greater :
1161
-
1162
- * [csi-provisioner:v3.0.0+](https://github.com/kubernetes-csi/external-provisioner/releases/tag/v3.0.0)
1163
- * [csi-attacher:v3.3.0+](https://github.com/kubernetes-csi/external-attacher/releases/tag/v3.3.0)
1164
- * [csi-resizer:v1.3.0+](https://github.com/kubernetes-csi/external-resizer/releases/tag/v1.3.0)
1165
1156
-->
1166
1157
` ReadWriteOncePod` 访问模式仅适用于 {{< glossary_tooltip text="CSI" term_id="csi" >}}
1167
1158
卷和 Kubernetes v1.22+。要使用此特性,你需要将以下
@@ -1174,11 +1165,6 @@ to these versions or greater:
1174
1165
1175
1166
<!--
1176
1167
In the CLI, the access modes are abbreviated to :
1177
-
1178
- * RWO - ReadWriteOnce
1179
- * ROX - ReadOnlyMany
1180
- * RWX - ReadWriteMany
1181
- * RWOP - ReadWriteOncePod
1182
1168
-->
1183
1169
在命令行接口(CLI)中,访问模式也使用以下缩写形式:
1184
1170
@@ -1257,7 +1243,7 @@ to PVCs that request no particular class.
1257
1243
每个 PV 可以属于某个类(Class),通过将其 `storageClassName` 属性设置为某个
1258
1244
[StorageClass](/zh-cn/docs/concepts/storage/storage-classes/) 的名称来指定。
1259
1245
特定类的 PV 卷只能绑定到请求该类存储卷的 PVC 申领。
1260
- 未设置 `storageClassName` 的 PV 卷没有类设定,只能绑定到那些没有指定特定存储类的 PVC 申领 。
1246
+ 未设置 `storageClassName` 的 PV 卷没有类设定,只能绑定到那些没有指定特定存储类的 PVC 上 。
1261
1247
1262
1248
<!--
1263
1249
In the past, the annotation `volume.beta.kubernetes.io/storage-class` was used instead
@@ -1419,7 +1405,7 @@ the current time.
1419
1405
该字段保存的是卷上次转换阶段的时间戳。
1420
1406
对于新创建的卷,阶段被设置为 `Pending`,`lastPhaseTransitionTime` 被设置为当前时间。
1421
1407
1422
- # # PersistentVolumeClaims
1408
+ # # PersistentVolumeClaim
1423
1409
1424
1410
<!--
1425
1411
Each PVC contains a spec and status, which is the specification and status of the claim.
0 commit comments