This message was deleted.
# kubernetes
s
This message was deleted.
g
We don’t have a built-in way of doing that. Unfortunately, k8s doesn’t currently expose a way to delete associated PVs automatically when you delete a StatefulSet. Easiest approach is probably cleaning leftover PVs with kubectl, but you could also write some code to handle orphaned PVs on update. Your program could either shell out to kubectl or use a k8s client library for your language.
h
ok. Thank you.