tencent cloud

masukan

PV and PVC binding rules

Terakhir diperbarui:2022-11-10 10:26:13

    PV Status Introduction

    PV StatusDescription
    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 StatusDescription
    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:

    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24