First we need to note that : When you need to delete both PV, PVC then you must start from PVC and then go for PV . I n case mistakenly a PV is deleted first then it goes in terminating state as shown below: Deleted the pv mistakenly Output : See the higlighted one Enlisting the desired PVC for which the PV we have deleted as highlighted Now if we delete that particular PVC so it will also go into terminating state as shown below After deletion it also goes in terminating state. Work Around Edit the particular PVC like as shown kubectl edit pvc < pvc name> Remove that particular line just as highlighted below: Once Edit is done that Terminiating state is no more there and PVC AND PV completely deleted.👏 Feel Free to query : Click Here By: Ibrar Aziz (Cloud Enthusiast) https://ibraraziz-cloud.blogspot.com/ https://www.linkedin.com/in/ibraraziz/
As a Modern Infrastructure and Cloud Enthusiast, I have extensive experience in containerization (VMware Tanzu, Kubernetes, OpenShift), linux, Cloud and SAN infrastructure management. This expertise allows me to deliver robust, efficient, and secure infrastructure solutions for organizations. Experienced in infra and system design and implementation, I stay updated with tech trends to optimize infrastructure, lead teams, and collaborate for organizational success. Consultancy is available !!