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.
In case mistakenly a PV is deleted first then it goes in terminating state as shown below:
Deleted the pv mistakenly
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 AroundEdit 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/
Comments
Post a Comment