Update docs to specify PV deletion protection finalizer support for only dynamically provisioned volumes
Signed-off-by: Deepak Kinni <dkinni@vmware.com>
This commit is contained in:
parent
2d75bfa812
commit
8c9bf99a66
|
|
@ -181,26 +181,34 @@ However, the particular path specified in the custom recycler Pod template in th
|
||||||
Finalizers can be added on a PersistentVolume to ensure that PersistentVolumes
|
Finalizers can be added on a PersistentVolume to ensure that PersistentVolumes
|
||||||
having `Delete` reclaim policy are deleted only after the backing storage are deleted.
|
having `Delete` reclaim policy are deleted only after the backing storage are deleted.
|
||||||
|
|
||||||
|
The newly introduced finalizers `kubernetes.io/pv-controller` and `external-provisioner.volume.kubernetes.io/finalizer`
|
||||||
|
are only added to dynamically provisioned volumes.
|
||||||
|
|
||||||
The finalizer `kubernetes.io/pv-controller` is added to in-tree plugin volumes. The following is an example
|
The finalizer `kubernetes.io/pv-controller` is added to in-tree plugin volumes. The following is an example
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl describe pv task-pv-volume
|
kubectl describe pv pvc-74a498d6-3929-47e8-8c02-078c1ece4d78
|
||||||
Name: task-pv-volume
|
Name: pvc-74a498d6-3929-47e8-8c02-078c1ece4d78
|
||||||
Labels: type=local
|
Labels: <none>
|
||||||
Annotations: <none>
|
Annotations: kubernetes.io/createdby: vsphere-volume-dynamic-provisioner
|
||||||
Finalizers: [kubernetes.io/pv-protection, kubernetes.io/pv-controller]
|
pv.kubernetes.io/bound-by-controller: yes
|
||||||
StorageClass: standard
|
pv.kubernetes.io/provisioned-by: kubernetes.io/vsphere-volume
|
||||||
|
Finalizers: [kubernetes.io/pv-protection kubernetes.io/pv-controller]
|
||||||
|
StorageClass: vcp-sc
|
||||||
Status: Bound
|
Status: Bound
|
||||||
Claim:
|
Claim: default/vcp-pvc-1
|
||||||
Reclaim Policy: Delete
|
Reclaim Policy: Delete
|
||||||
Access Modes: RWO
|
Access Modes: RWO
|
||||||
|
VolumeMode: Filesystem
|
||||||
Capacity: 1Gi
|
Capacity: 1Gi
|
||||||
|
Node Affinity: <none>
|
||||||
Message:
|
Message:
|
||||||
Source:
|
Source:
|
||||||
Type: HostPath (bare host directory volume)
|
Type: vSphereVolume (a Persistent Disk resource in vSphere)
|
||||||
Path: /tmp/data
|
VolumePath: [vsanDatastore] d49c4a62-166f-ce12-c464-020077ba5d46/kubernetes-dynamic-pvc-74a498d6-3929-47e8-8c02-078c1ece4d78.vmdk
|
||||||
HostPathType:
|
FSType: ext4
|
||||||
Events: <none>
|
StoragePolicyName: vSAN Default Storage Policy
|
||||||
|
Events: <none>
|
||||||
```
|
```
|
||||||
|
|
||||||
The finalizer `external-provisioner.volume.kubernetes.io/finalizer` is added for CSI volumes.
|
The finalizer `external-provisioner.volume.kubernetes.io/finalizer` is added for CSI volumes.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue