{"id":2048,"date":"2020-06-15T12:28:54","date_gmt":"2020-06-15T09:28:54","guid":{"rendered":"https:\/\/artem.services\/?p=1996"},"modified":"2020-11-09T12:41:13","modified_gmt":"2020-11-09T09:41:13","slug":"2048","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=2048&lang=en","title":{"rendered":"FIX ERROR &#8212; EKS: cloudwatch &#8212; 0\/1 nodes are available: 1 Insufficient pods."},"content":{"rendered":"<p>After <a href=\"https:\/\/docs.aws.amazon.com\/AmazonCloudWatch\/latest\/monitoring\/Container-Insights-setup-EKS-quickstart.html\" target=\"_blank\" rel=\"noopener noreferrer\">installing<\/a> CloudWatch Agent in the EKS cluster, its pods stuck in the &quot;<strong>Pending<\/strong>&quot; state<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1997\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.01.55.png\" alt=\"\" width=\"1328\" height=\"344\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.01.55.png 1328w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.01.55-300x78.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.01.55-1024x265.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.01.55-768x199.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.01.55-954x247.png 954w\" sizes=\"(max-width: 1328px) 100vw, 1328px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Watching the describe pod<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1998\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15.png\" alt=\"\" width=\"1848\" height=\"152\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15.png 1848w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15-300x25.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15-1024x84.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15-768x63.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15-1536x126.png 1536w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15-954x78.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.02.15-1354x111.png 1354w\" sizes=\"(max-width: 1848px) 100vw, 1848px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Solution:<\/h3>\n<p>The solution was found <a href=\"https:\/\/stackoverflow.com\/a\/58988063\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>. In this <strong>EKS<\/strong> cluster, a separate <strong>NodeGroup<\/strong> is allocated for the system pods with the instance type: <strong>t3.micro<\/strong>, and there is simply not enough capacity to launch the <strong>CloudWatch Agent<\/strong>.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1999\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.03.45.png\" alt=\"\" width=\"1044\" height=\"78\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.03.45.png 1044w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.03.45-300x22.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.03.45-1024x77.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.03.45-768x57.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2020\/06\/Screenshot-2020-06-15-at-12.03.45-954x71.png 954w\" sizes=\"(max-width: 1044px) 100vw, 1044px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After changing the type of instance upwards &#8212; <strong>t3.small<\/strong>, all pods switched to the &quot;<strong>Running<\/strong>&quot; status<\/p>\n<p><strong>EKS<\/strong> has limits on the number of pods per node, this limit can be calculated using the following formula:<\/p>\n<blockquote><p>N * (M-1) + 2<\/p><\/blockquote>\n<p>Where, <strong>N<\/strong> is the number of <strong>Elastic Network Interfaces<\/strong> (<strong>ENI<\/strong>) for this type of instance, <strong>M<\/strong> is the number of <strong>IP<\/strong> addresses for one <strong>ENI<\/strong><\/p>\n<p>The <strong>N<\/strong> and <strong>M<\/strong> values for a specific instance can be found <a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/using-eni.html#AvailableIpPerENI\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After installing CloudWatch Agent in the EKS cluster, its pods stuck in the &quot;Pending&quot; state &nbsp; Watching the describe pod &nbsp; Solution: The solution was found here. In this EKS cluster, a separate NodeGroup is allocated for the system pods with the instance type: t3.micro, and there is simply not enough capacity to launch the &hellip; <a href=\"https:\/\/artem.services\/?p=2048&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;FIX ERROR &#8212; EKS: cloudwatch &#8212; 0\/1 nodes are available: 1 Insufficient pods.&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[357],"tags":[1563,361,365,663],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2048"}],"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=2048"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2048\/revisions"}],"predecessor-version":[{"id":2050,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/2048\/revisions\/2050"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}