PV Status | Description |
---|---|
Available | When a created PV is not bound with a PVC, the PV is in the `Available` status. |
Bound | After a PVC is bound with a PV, the PV is in the `Bound` status. |
Released | For a PV with the Retain reclaim policy, after its bound PVC is deleted, the status of the PV will change from `Bound` to `Released`. Note: for a PV in the `Released` status, you need to manually delete the claimRef field in the YAML configuration file so that the PV can be successfully bound with a new PVC. |
PVC Status | Description |
---|---|
Pending | When no eligible PV can be bound with a PVC, the PVC is in the `Pending` status. |
Bound | After a PVC is bound with a PV, the PVC is in the `Bound` status. |
When binding a PVC with a PV, consider the following parameters to check whether PVs that meet the binding rules are available in the current cluster.
Parameter | Description |
---|---|
VolumeMode | Specifies whether the volume is of the `FileSystem` type or `Block` type. The PV to be selected must match the PVC in terms of the VolumeMode label. |
Storageclass | The `storageclass` of the PV and PVC must be the same (or both empty). |
AccessMode | Specifies the volume access mode. The AccessMode of the PV and that of the PVC must be the same. |
Size | Specifies the storage capacity of the volume. The specified capacity of the PVC must be less than or equal to that of the PV. If multiple eligible PVs are available, bind the PV with the smallest capacity to the PVC. |
Note:After a PVC is created, the system will bind an eligible PV with the PVC based on the above parameters. If the PV resources in the current cluster are insufficient, the system will dynamically create an eligible PV and bind it with the PVC.
The following figure shows the principle of StorageClass selection and PV/PVC binding on TKE platform:
Was this page helpful?