{"id":1290,"date":"2019-07-16T12:50:47","date_gmt":"2019-07-16T09:50:47","guid":{"rendered":"https:\/\/artem.services\/?p=1290"},"modified":"2019-07-16T12:51:27","modified_gmt":"2019-07-16T09:51:27","slug":"kubernetes-status-evicted","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1290","title":{"rendered":"Kubernetes &#8212; Status: Evicted"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-149\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Kubernetes-Logo.png\" alt=\"\" width=\"844\" height=\"217\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Kubernetes-Logo.png 844w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Kubernetes-Logo-300x77.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/10\/Kubernetes-Logo-768x197.png 768w\" sizes=\"(max-width: 844px) 100vw, 844px\" \/><\/p>\n<p>\u0421\u0442\u0430\u0442\u0443\u0441 &quot;<strong>Evicted<\/strong>&quot; \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e Pod \u0431\u044b\u043b &quot;<strong>\u0432\u044b\u0441\u0435\u043b\u0435\u043d<\/strong>&quot; \u0441 \u043d\u043e\u0434\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u043c\u0443 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0434\u044b:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nkubectl get pod -n staging\r\nNAME                                      READY   STATUS             RESTARTS   AGE\r\nartem-client-app-5bb855b7-ccfmz           1\/1     Running            0          63m\r\nartem-instance-app-64584c56d4-4g5qh       0\/1     Evicted            0          16m\r\nartem-instance-app-64584c56d4-knc9z       0\/1     Evicted            0          16m\r\nartem-instance-app-64584c56d4-ld8h9       0\/1     Evicted            0          25m\r\nartem-instance-app-64584c56d4-lstt9       0\/1     Evicted            0          16m\r\nartem-instance-app-64584c56d4-sksrg       0\/1     Evicted            0          16m\r\nartem-instance-app-c67d9b8b9-7ppsg        1\/1     Running            0          14m\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0434\u044b \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 &quot;<strong>Evicted<\/strong>&quot; \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nkubectl get pods --all-namespaces -o json | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains(&quot;Evicted&quot;)) | &quot;kubectl delete pods \\(.metadata.name) -n \\(.metadata.namespace)&quot;' | xargs -n 1 bash -c\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0442\u0430\u0442\u0443\u0441 &quot;Evicted&quot; \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e Pod \u0431\u044b\u043b &quot;\u0432\u044b\u0441\u0435\u043b\u0435\u043d&quot; \u0441 \u043d\u043e\u0434\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u043c\u0443 \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0434\u044b: &nbsp; \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u043e\u0434\u044b \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 &quot;Evicted&quot; \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[1013,18,17,657],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1290"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1290"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions"}],"predecessor-version":[{"id":1292,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions\/1292"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}