PV types will Kubernetes Delete Type update Retain

Recycling Policy

Typical StorageClass template shown below, by generating a recovery strategy reclaimPolicy PV field definitions:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: alicloud-disk-efficiency
parameters:
  type: cloud_efficiency
provisioner: alicloud/disk
reclaimPolicy: Delete

Two common reclaimPolicy values: Delete, Retain;

Delete: Delete PVC represents time, PV will be deleted together, but also delete the actual storage space PV pointed;

Retain: PVC means to delete the time, PV does not remove together, but became Released state waits for the administrator to manually clean up;

Both have their own configuration

Guess you like

Origin yq.aliyun.com/articles/718151