处于Persistent volume claim
状态的持久卷后,我们可以将Released
分配给它吗?
尝试过但不能
最佳答案
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.
- 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.
- Manually clean up the data on the associated storage asset accordingly.
- 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/