橡皮擦擦

K8S删除Pod

解决方案

删除pod

[root@kubeapi ~]# kubectl get pod -n 038cef84b8eb4b6d9720181f3120620f
NAME                                                           READY     STATUS    RESTARTS   AGE
12005fc0642b411b8dabf05ac4e26fa1-deployment-957b95585-brtw8    2/2       Running   4          44d
2a22e9aab79edf102d8c90cc37236cea-deployment-69b45c6b66-j9bs8   1/1       Running   0          1d
402640f20c5ecab750f38e5f4536ebf7-deployment-65fd447c84-2z9pd   1/1       Running   1          57d
412487898397ebac45d3cae5a2713d0b-deployment-84b94b5575-vsjsg   1/1       Running   0          2d
59a19a01249740c2bb099c1dc660872f-deployment-554f8cdb4f-8ngdv   1/1       Running   0          1m
77cd6adfea32111be0b4a3e7e7bcd80b-deployment-7685ff89c5-qxlkg   1/1       Running   1          22d
89446adc5981c9a5db7ab52d8b11386b-deployment-77748d4796-wlg5l   1/1       Running   1          33d
8c8b771c54db62d475512bb622368ed8-deployment-775748ddd6-vjkdt   1/1       Running   0          2d
8d5dc12311c4e722d36da9b6e0c70241-deployment-64599d8554-kpnqp   1/1       Running   0          6d

[root@kubeapi ~]# kubectl delete pod 12005fc0642b411b8dabf05ac4e26fa1-deployment-957b95585-brtw8 -n 038cef84b8eb4b6d9720181f3120620f
pod "12005fc0642b411b8dabf05ac4e26fa1-deployment-957b95585-brtw8" deleted
点我评论
打赏本文
二维码


45

文章

6

分类