This message was deleted.
# longhorn-storage
a
This message was deleted.
n
I found there a solution as reference from stackflow which mention to remove
clainRef
with
kubectl patch pv <pv-name> --type json -p '[{"op": "remove", "path": "/spec/claimRef"}]
Hope it can help you.
m
@narrow-egg-98197 Thanks. Yea, I found about that approach too. However, it is very inconvenient as I would like to remove it automatically. Apparently there’s no such functionality in k8s 🤔
👀 1
n
yeah, i also found there were related discussion here in the Kubernetes repository but seems there is no functional method to clean claimRef field to reuse the PVC.