[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
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
[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]#