TKC PVC with Reclaim Policy set to "Retain" is not deleted from the Supervisor
search cancel

TKC PVC with Reclaim Policy set to "Retain" is not deleted from the Supervisor

book

Article ID: 391505

calendar_today

Updated On:

Products

Tanzu Kubernetes Runtime

Issue/Introduction

After deleting a PVC 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. 

Environment

vSphere Kubernetes Supervisor 8.x
vSphere Kubernetes Supervisor 7.x

Resolution

- If a TKG PVC is provisioned with a StorageClass where reclaimPolicy is set to "delete", deleting the TKG PVC will trigger the deletion of the corresponding SV PVC.
- If a TKG PVC is provisioned with a StorageClass where reclaimPolicy is set to "retain", deleting the TKG PVC will not delete the corresponding SV PVC.

This behavior aligns with Kubernetes requirements, and our TKGs supports the reclaimPolicy settings as defined by Kubernetes for both TKG and Supervisor.