Bài viết trên chỉ mình các delete. lưu lại thôi
root@work-space-u20:~# kubectl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-27072567-b159-4d84-80dd-10c4a47b2bed 32Gi RWO Delete Terminating kubecost/kubecost-prometheus-server longhorn 37d
pvc-a86ffeba-5486-4b4f-a17a-5ee69d6be5d1 32Gi RWO Delete Terminating kubecost/kubecost-cost-analyzer longhorn 37d
>>> thực hiện xoá nhanh
kubectl patch persistentvolumeclaim/kubecost-cost-analyzer -p '{"metadata":{"finalizers":null}}' -n kubecost
kubectl patch persistentvolumeclaim/kubecost-prometheus-server -p '{"metadata":{"finalizers":null}}' -n kubecost