pod 删除

 

 

 

 

[root@cloud temperature_yaml]# kubectl get pod -o wide | grep temperature | wc -l
278
[root@cloud temperature_yaml]# kubectl get pod -o wide | grep temperature |  awk '{print $1}' | xargs kubectl delete pod

 

pod 删除

 

 

kubectl get pod -o wide | grep temperature |  awk '{print $1}' | xargs kubectl delete pod --force --grace-period=0

可以删掉

 

[root@cloud temperature_yaml]# kubectl get pod -o wide | grep temperature | wc -l
59
[root@cloud temperature_yaml]# kubectl get pod -o wide | grep temperature |  awk '{print $1}' | xargs kubectl delete pod --force --grace-period=0

 

从etcd中删除

 

[root@cloud temperature_yaml]# cat /etc/kubernetes/manifests/etcd.yaml | grep image
    image: k8s.gcr.io/etcd:3.4.3-0
    imagePullPolicy: IfNotPresent
[root@cloud temperature_yaml]# 

 

 

查看k8s的etcd pod中的数据

如何批量删除k8s中的deployment和pod

上一篇:DNN整合基因组谱


下一篇:深度学习模型产权保护怎么做?看这些资深大牛分享了什么