Skip to content

uninstall

Danger

Please make sure to back up all data before uninstalling HwameiStor.

Delete the Helm instance

helm delete -n hwameistor hwameistor

Cleanup

  1. Remove the namespace

    kubectl delete ns hwameistor
    
  2. Delete the LocalVolumeGroup instance

    kubectl delete localvolumegroups.hwameistor.io --all
    

    Note

    The LocalVolumeGroup object has a special finalizer, so its instance must be deleted before its definition.

  3. Remove CRD, Hook and RBAC

    kubectl get crd,mutating webhookconfiguration,clusterrolebinding,clusterrole -o name\
        | grep hwameistor \
        | xargs -t kubectl delete
    
  4. Remove StorageClass

    kubectl get sc -o name \
        | grep hwameistor-storage-lvm- \
        | xargs -t kubectl delete
    

Comments