tencent cloud

Feedback

PV and PVC binding rules

Last updated: 2024-12-19 21:41:55

    PV Status Introduction

    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 Introduction

    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.
    

    Binding Rules

    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.

    StorageClass Selection and PV/PVC Binding

    The following figure shows the principle of StorageClass selection and PV/PVC binding on TKE platform:
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support