如果要卸载HBlock CSI,建议卸载前清除sc、statefulset、pod、pvc、pv,可以执行下列命令清除对应资源。对于pod、pvc、pv,必须按照顺序pod > pvc > pv执行删除命令。
删除sc:
kubectl delete sc storageclassname
删除statefulset:
kubectl delete statefulset statefulsetname --cascade=true
删除pod:
kubectl delete pod podname
删除pvc:
kubectl delete pvc pvcname
删除pv:
kubectl delete pv pvname
执行卸载脚本./undeploy.sh卸载CSI。
cd deploy
./undeploy.sh