gpt4 book ai didi

kubernetes - 如果pvc处于“已发布”状态,我们可以将其分配给pv吗?

转载 作者:行者123 更新时间:2023-12-02 12:12:57 24 4
gpt4 key购买 nike

处于Persistent volume claim状态的持久卷后,我们可以将Released分配给它吗?
尝试过但不能

最佳答案

是。看看official documentation:

Reclaiming

When a user is done with their volume, they can delete the PVC objects from the > API that allows reclamation of the resource. The reclaim policy for a PersistentVolume tells the cluster what to do with the volume after it has been released of its claim. Currently, volumes can either be Retained, Recycled, or Deleted.

Retain

The Retain reclaim policy allows for manual reclamation of the resource. When the PersistentVolumeClaim is deleted, the PersistentVolume still exists and the volume is considered “released”. But it is not yet available for another claim because the previous claimant’s data remains on the volume. An administrator can manually reclaim the volume with the following steps.

  1. Delete the PersistentVolume. The associated storage asset in external infrastructure (such as an AWS EBS, GCE PD, Azure Disk, or Cinder volume) still exists after the PV is deleted.
  2. Manually clean up the data on the associated storage asset accordingly.
  3. Manually delete the associated storage asset, or if you want to reuse the same storage asset, create a new PersistentVolume with the storage asset definition.


请让我知道是否有帮助。

关于kubernetes - 如果pvc处于“已发布”状态,我们可以将其分配给pv吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60606141/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com