website/content/zh/docs/reference/glossary/persistent-volume.md

49 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 持久卷Persistent Volume
id: persistent-volume
date: 2018-04-12
full_link: /zh/docs/concepts/storage/persistent-volumes/
short_description: >
持久卷是代表集群中一块存储空间的 API 对象。 它是通用的、可插拔的、并且不受单个 Pod 生命周期约束的持久化资源。
aka:
tags:
- core-object
- storage
---
<!--
---
title: Persistent Volume
id: persistent-volume
date: 2018-04-12
full_link: /docs/concepts/storage/persistent-volumes/
short_description: >
An API object that represents a piece of storage in the cluster. Available as a general, pluggable resource that persists beyond the lifecycle of any individual Pod.
aka:
tags:
- core-object
- storage
---
-->
<!--
An API object that represents a piece of storage in the cluster. Available as a general, pluggable resource that persists beyond the lifecycle of any individual {{< glossary_tooltip text="Pod" term_id="pod" >}}.
-->
持久卷是代表集群中一块存储空间的 API 对象。 它是通用的、可插拔的、并且不受单个 {{< glossary_tooltip text="Pod" term_id="pod" >}} 生命周期约束的持久化资源。
<!--more-->
<!--
PersistentVolumes (PVs) provide an API that abstracts details of how storage is provided from how it is consumed.
PVs are used directly in scenarios where storage can be created ahead of time (static provisioning).
For scenarios that require on-demand storage (dynamic provisioning), PersistentVolumeClaims (PVCs) are used instead.
-->
持久卷PersistentVolumesPV提供了一个 API该 API 对存储的供应方式细节进行抽象,令其与使用方式相分离。
在提前创建存储静态供应的场景中PV 可以直接使用。
在按需提供存储(动态供应)的场景中,需要使用 PersistentVolumeClaims (PVCs)。