After deleting a PVC (and PV) from a guest cluster that has a Reclaim Policy of "Retain", it is still present on the Supervisor. This is expected and working as designed. The PVC is retained on the Supervisor in case it is required to re-use the PVC at a later date.
Symptoms -
PVCs remain visible in the vSphere Client under Namespace > Storage despite being deleted from the TKGs(Tanzu Kubernetes Grid Service) Cluster/VKS(VMware vSphere Kubernetes Service) cluster.
When checking the Supervisor Cluster, the PVC status is listed as "Bound" even after guest cluster removal:
NAMESPACE NAME STATUS VOLUME CAPACITY STORAGECLASS
<vcenter-ns> <pvc-uuid-name> Bound pvc-####-####-####-#### vSphere Kubernetes Supervisor 7.x
vSphere Kubernetes Supervisor 8.x
VMware Cloud Foundation 4.x, 5.x
vSphere with Tanzu
This behaviour aligns with Kubernetes requirements, and our TKGs/VKS supports the reclaimPolicy settings as defined by Kubernetes for both TKG and Supervisor.
kubectl get sc <storage-class-name> -o yaml | grep reclaimPolicykubectl vsphere login.kubectl delete pvc <pvc-name>reclaimPolicy to Delete in the StorageClass definition.Please note even in case you delete the corresponding PV after deleting a PVC from the Guest cluster, the corresponding Supervisor PVC won't be deleted if the Guest cluster's StorageClass has ReclaimPolicy of "Retain'.