WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f725149

Browse files
authored
Merge pull request #53113 from windsonsea/pvv1y
[zh] Sync persistent-volume-v1.md
2 parents c3fa67d + 3f15731 commit f725149

File tree

1 file changed

+107
-12
lines changed

1 file changed

+107
-12
lines changed

content/zh-cn/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-v1.md

Lines changed: 107 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,19 @@ PersistentVolumeSpec 是持久卷的规约。
216216
Recycle 选项必须被 PersistentVolume 下层的卷插件所支持才行。更多信息:
217217
https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes#reclaiming
218218

219+
<!--
220+
Possible enum values:
221+
- `"Delete"` means the volume will be deleted from Kubernetes on release from its claim. The volume plugin must support Deletion.
222+
- `"Recycle"` means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. The volume plugin must support Recycling.
223+
- `"Retain"` means the volume will be left in its current phase (Released) for manual reclamation by the administrator. The default policy is Retain.
224+
-->
225+
226+
可能的枚举值:
227+
228+
- `"Delete"` 表示卷与其申领解绑并被释放后,该卷会从 Kubernetes 中被删除。卷插件必须支持 **Deletion**
229+
- `"Recycle"` 表示卷与其申领解绑并被释放后,该卷将被回收到未绑定的持久卷池中。卷插件必须支持 **Recycling**
230+
- `"Retain"` 表示卷将保持在当前阶段(Released),供管理员手动回收。**默认策略是 Retain**
231+
219232
<!--
220233
- **storageClassName** (string)
221234
@@ -247,6 +260,17 @@ PersistentVolumeSpec 是持久卷的规约。
247260
volumeMode 定义一个卷是带着已格式化的文件系统来使用还是保持在原始块状态来使用。
248261
当 spec 中未包含此字段时,意味着取值为 Filesystem。
249262

263+
<!--
264+
Possible enum values:
265+
- `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device.
266+
- `"Filesystem"` means the volume will be or is formatted with a filesystem.
267+
-->
268+
269+
可能的枚举值:
270+
271+
- `"Block"` 表示卷不会被格式化为文件系统,而是保持为原始的块设备。
272+
- `"Filesystem"` 表示卷将会被或正被格式化为某文件系统。
273+
250274
### Local
251275

252276
<!--
@@ -256,14 +280,6 @@ PersistentVolumeSpec 是持久卷的规约。
256280
257281
<a name="HostPathVolumeSource"></a>
258282
*Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.*
259-
260-
- **hostPath.path** (string), required
261-
262-
path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
263-
264-
- **hostPath.type** (string)
265-
266-
type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
267283
-->
268284
- **hostPath** (HostPathVolumeSource)
269285

@@ -274,6 +290,16 @@ PersistentVolumeSpec 是持久卷的规约。
274290
<a name="HostPathVolumeSource"></a>
275291
**表示映射到 Pod 中的主机路径。主机路径卷不支持所有权管理或 SELinux 重新打标签。**
276292

293+
<!--
294+
- **hostPath.path** (string), required
295+
296+
path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
297+
298+
- **hostPath.type** (string)
299+
300+
type for HostPath Volume Defaults to "" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
301+
-->
302+
277303
- **hostPath.path** (string),必需
278304

279305
目录在主机上的路径。如果该路径是一个符号链接,则它将沿着链接指向真实路径。
@@ -284,6 +310,31 @@ PersistentVolumeSpec 是持久卷的规约。
284310
HostPath 卷的类型。默认为 ""。更多信息:
285311
https://kubernetes.io/zh-cn/docs/concepts/storage/volumes#hostpath
286312

313+
<!--
314+
Possible enum values:
315+
- `""` For backwards compatible, leave it empty if unset
316+
- `"BlockDevice"` A block device must exist at the given path
317+
- `"CharDevice"` A character device must exist at the given path
318+
- `"Directory"` A directory must exist at the given path
319+
- `"DirectoryOrCreate"` If nothing exists at the given path, an empty directory will be created there as needed with file mode 0755, having the same group and ownership with Kubelet.
320+
- `"File"` A file must exist at the given path
321+
- `"FileOrCreate"` If nothing exists at the given path, an empty file will be created there as needed with file mode 0644, having the same group and ownership with Kubelet.
322+
- `"Socket"` A UNIX socket must exist at the given path
323+
-->
324+
325+
可能的枚举值:
326+
327+
- `""` 用于兼容旧版本,如果未设置则保持为空
328+
- `"BlockDevice"` 表示在给定的路径必须存在一个块设备
329+
- `"CharDevice"` 表示在给定的路径必须存在一个字符设备
330+
- `"Directory"` 表示在给定的路径必须存在一个目录
331+
- `"DirectoryOrCreate"` 表示如果在给定的路径不存在任何对象,则在所给位置自动创建一个空目录,
332+
按需将文件模式设为 0755,且组和所有权与 kubelet 相同
333+
- `"File"` 表示在给定的路径必须存在一个文件
334+
- `"FileOrCreate"` 表示如果在给定的路径不存在任何对象,则在所给路径自动创建一个空文件,
335+
按需将文件模式设为 0644,且组和所有权与 kubelet 相同
336+
- `"Socket"` 表示在给定的路径必须存在一个 UNIX 套接字
337+
287338
<!--
288339
- **local** (LocalVolumeSource)
289340
@@ -426,6 +477,19 @@ PersistentVolumeSpec 是持久卷的规约。
426477

427478
cachingMode 是主机缓存(Host Caching)模式:None、Read Only、Read Write。
428479

480+
<!--
481+
Possible enum values:
482+
- `"None"`
483+
- `"ReadOnly"`
484+
- `"ReadWrite"`
485+
-->
486+
487+
可能的枚举值:
488+
489+
- `"None"`
490+
- `"ReadOnly"`
491+
- `"ReadWrite"`
492+
429493
<!--
430494
- **azureDisk.fsType** (string)
431495
@@ -434,6 +498,11 @@ PersistentVolumeSpec 是持久卷的规约。
434498
- **azureDisk.kind** (string)
435499
436500
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared
501+
502+
Possible enum values:
503+
- `"Dedicated"`
504+
- `"Managed"`
505+
- `"Shared"`
437506
438507
- **azureDisk.readOnly** (boolean)
439508
@@ -455,6 +524,12 @@ PersistentVolumeSpec 是持久卷的规约。
455524

456525
默认为 Shared。
457526

527+
可能的枚举值:
528+
529+
- `"Dedicated"`
530+
- `"Managed"`
531+
- `"Shared"`
532+
458533
- **azureDisk.readOnly** (boolean)
459534

460535
readOnly 默认为 false(读/写)。此处 readOnly 将在 VolumeMounts 中强制设置 readOnly。
@@ -1960,10 +2035,6 @@ PersistentVolumeStatus 是持久卷的当前状态。
19602035
- **phase** (string)
19612036
19622037
phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
1963-
1964-
- **reason** (string)
1965-
1966-
reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
19672038
-->
19682039
- **message** (string)
19692040

@@ -1974,6 +2045,30 @@ PersistentVolumeStatus 是持久卷的当前状态。
19742045
phase 表示一个卷是否可用,是否绑定到一个 PVC 或是否由某个 PVC 释放。更多信息:
19752046
https://kubernetes.io/zh-cn/docs/concepts/storage/persistent-volumes#phase
19762047

2048+
<!--
2049+
Possible enum values:
2050+
- `"Available"` used for PersistentVolumes that are not yet bound Available volumes are held by the binder and matched to PersistentVolumeClaims
2051+
- `"Bound"` used for PersistentVolumes that are bound
2052+
- `"Failed"` used for PersistentVolumes that failed to be correctly recycled or deleted after being released from a claim
2053+
- `"Pending"` used for PersistentVolumes that are not available
2054+
- `"Released"` used for PersistentVolumes where the bound PersistentVolumeClaim was deleted released volumes must be recycled before becoming available again this phase is used by the persistent volume claim binder to signal to another process to reclaim the resource
2055+
-->
2056+
2057+
可能的枚举值:
2058+
2059+
- `"Available"` 用于尚未绑定的 PersistentVolume。可用的卷由绑定程序持有,并匹配到 PersistentVolumeClaim。
2060+
- `"Bound"` 用于已绑定的 PersistentVolume。
2061+
- `"Failed"` 用于从申领释放后,无法正确回收或删除的 PersistentVolume。
2062+
- `"Pending"` 用于不可用的 PersistentVolume。
2063+
- `"Released"`:用于绑定的 PersistentVolumeClaim 已被删除的 PersistentVolume。
2064+
这些释放的卷必须先回收,才能再次成为可用。
2065+
此阶段由 PersistentVolumeClaim 绑定程序用于向另一个进程发出回收资源的信号。
2066+
2067+
<!--
2068+
- **reason** (string)
2069+
2070+
reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
2071+
-->
19772072
- **reason** (string)
19782073

19792074
reason 是一个描述任何故障的简短 CamelCase 字符串,用于机器解析并在 CLI 中整齐地显示。

0 commit comments

Comments
 (0)