Hi All, i have created a claim for pv and forget to mention namespace i deleted . . .

javeed shakeel:
Hi All,

i have created a claim for pv and forget to mention namespace i deleted the pv claim that i did to mount on a pod. once after deletion the pv is released and not in available state how to make it available and it is still mapped to the old claim resource only

unnivkn:
please delete your PV & recreate both PV & PVC

unnivkn:

javeed shakeel:
@unnivkn can we follow the same in CKA exam ?

javeed shakeel:
By deleting the PV and recreateing it?

kubectl get pv <name of pv> > pv.yaml a

nd do modifications by removing the unnescessry config and old misplaces conig and apply ?

kubectl apply -f <pv.yaml

unnivkn:
sorry… due to NDA, I can’t comment anything related to exam.

javeed shakeel:
okay can i do the same in mock tests creating volumes again once it’s in releases state.