kubectl批量删除pvc

#!/bin/bash
kubectl get pvc |grep hub > tmp.txt
cat tmp.txt |awk '{split($0,a," ");print a[1]}' > tmp2.txt
for line in `cat tmp2.txt`
do
kubectl delete pvc $line
done

上一篇:java sql


下一篇:关于hdfs 和hive的数据迁移