{"id":1451,"date":"2023-03-23T22:18:34","date_gmt":"2023-03-23T14:18:34","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1451"},"modified":"2023-04-28T20:49:11","modified_gmt":"2023-04-28T12:49:11","slug":"kubernetes-forcibly-deletes-pods-that-have-been-in-terminating-state","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/23\/kubernetes-forcibly-deletes-pods-that-have-been-in-terminating-state\/","title":{"rendered":"Kubernetes\u5f3a\u5236\u5220\u9664\u4e00\u76f4\u5904\u4e8eTerminating\u72b6\u6001\u7684pod"},"content":{"rendered":"<p>\u5728dashboard\u754c\u9762\u5220\u9664\u5bb9\u5668\uff0c\u53d1\u73b0\u65e0\u6cd5\u5220\u9664\u3002\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u53d1\u73b0\u8be5pod\u4e00\u76f4\u5904\u4e8eterminating\u7684\u72b6\u6001\u3002Kubernetes\u652f\u6301\u5f3a\u5236\u5220\u9664\u4e00\u76f4\u5904\u4e8eTerminating\u72b6\u6001\u7684pod\u3002<\/p>\n<p>1\u3001\u4f7f\u7528\u547d\u4ee4\u83b7\u53d6pod\u7684\u540d\u5b57<\/p>\n<p><!-- more --><\/p>\n<pre><code>kubectl get pods -n NAMESPACE | grep Terminating<\/code><\/pre>\n<p>2\u3001\u4f7f\u7528kubectl\u4e2d\u7684\u5f3a\u5236\u5220\u9664\u547d\u4ee4<\/p>\n<pre><code>kubectl delete pod podName -n NAMESPACE --force --grace-period=0<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728dashboard\u754c\u9762\u5220\u9664\u5bb9\u5668\uff0c\u53d1\u73b0\u65e0\u6cd5\u5220\u9664\u3002\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u53d1\u73b0\u8be5pod\u4e00\u76f4\u5904\u4e8eterminating\u7684\u72b6\u6001\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[356],"class_list":["post-1451","post","type-post","status-publish","format-standard","hentry","category-k8s","tag-kubernetes"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}