You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "PersistentVolumeClaim is a user's request for and claim to a persistent volume."
18
18
title: "PersistentVolumeClaim"
19
-
weight: 4
19
+
weight: 6
20
20
-->
21
21
22
22
`apiVersion: v1`
@@ -71,6 +71,8 @@ PersistentVolumeClaimSpec describes the common attributes of storage devices and
71
71
<hr>
72
72
- **accessModes** ([]string)
73
73
74
+
*Atomic: will be replaced during a merge*
75
+
74
76
accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
@@ -91,57 +95,24 @@ PersistentVolumeClaimSpec 描述存储设备的常用参数,并支持通过 so
91
95
selector 是在绑定时对卷进行选择所执行的标签查询。
92
96
93
97
<!--
94
-
- **resources** (ResourceRequirements)
98
+
- **resources** (VolumeResourceRequirements)
95
99
96
100
resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
97
-
98
-
<a name="ResourceRequirements"></a>
99
-
*ResourceRequirements describes the compute resource requirements.*
*ResourceClaim references one entry in PodSpec.ResourceClaims.*
134
-
135
-
- **resources.claims.name** (string), required
136
-
137
-
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
PersistentVolumeClaimStatus is the current status of a persistent volume claim.
286
274
287
275
<hr>
288
276
289
277
- **accessModes** ([]string)
278
+
279
+
*Atomic: will be replaced during a merge*
280
+
290
281
accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.
411
+
*Map: unique values on key type will be kept during a merge*
412
+
413
+
conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.
419
414
420
415
<a name="PersistentVolumeClaimCondition"></a>
421
416
*PersistentVolumeClaimCondition contains details about state of pvc*
message is the human-readable message indicating details about last transition.
465
462
466
463
- **conditions.reason** (string)
467
-
reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "ResizeStarted" that means the underlying persistent volume is being resized.
464
+
reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports "Resizing" that means the underlying persistent volume is being resized.
currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation. When this is unset, there is no ModifyVolume operation being attempted. This is a beta field and requires enabling VolumeAttributesClass feature (off by default).
0 commit comments