{"id":40532,"date":"2023-09-28T08:23:05","date_gmt":"2023-09-28T08:23:05","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=40532"},"modified":"2023-09-28T08:23:07","modified_gmt":"2023-09-28T08:23:07","slug":"%f0%9d%91%bc%f0%9d%92%8f%f0%9d%92%85%f0%9d%92%86%f0%9d%92%93%f0%9d%92%94%f0%9d%92%95%f0%9d%92%82%f0%9d%92%8f%f0%9d%92%85%f0%9d%92%8a%f0%9d%92%8f%f0%9d%92%88-%f0%9d%91%b2%f0%9d%92%96%f0%9d%92%83","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/%f0%9d%91%bc%f0%9d%92%8f%f0%9d%92%85%f0%9d%92%86%f0%9d%92%93%f0%9d%92%94%f0%9d%92%95%f0%9d%92%82%f0%9d%92%8f%f0%9d%92%85%f0%9d%92%8a%f0%9d%92%8f%f0%9d%92%88-%f0%9d%91%b2%f0%9d%92%96%f0%9d%92%83\/","title":{"rendered":"\ud835\udc7c\ud835\udc8f\ud835\udc85\ud835\udc86\ud835\udc93\ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc8f\ud835\udc85\ud835\udc8a\ud835\udc8f\ud835\udc88 \ud835\udc72\ud835\udc96\ud835\udc83\ud835\udc86\ud835\udc93\ud835\udc8f\ud835\udc86\ud835\udc95\ud835\udc86\ud835\udc94 \ud835\udc77\ud835\udc90\ud835\udc85 \ud835\udc87\ud835\udc82\ud835\udc8a\ud835\udc8d\ud835\udc96\ud835\udc93\ud835\udc86\ud835\udc94"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"812\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/09\/pods-kubernetes-error.jpeg\" alt=\"\" class=\"wp-image-40533\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/09\/pods-kubernetes-error.jpeg 800w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/09\/pods-kubernetes-error-296x300.jpeg 296w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/09\/pods-kubernetes-error-768x780.jpeg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/09\/pods-kubernetes-error-80x80.jpeg 80w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Pods can have startup and runtime errors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Startup errors include:<\/h2>\n\n\n\n<p>\u2705 ImagePullBackoff<br>\u2705 ImageInspectError<br>\u2705 ErrImagePull<br>\u2705 ErrImageNeverPull<br>\u2705 RegistryUnavailable<br>\u2705 InvalidImageName<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Runtime errors include:<\/h2>\n\n\n\n<p>\ud83d\udccc <br>\u2705 CrashLoopBackOff<br>\u2705 RunContainerError<br>\u2705 KillContainerError<br>\u2705 VerifyNonRootError<br>\u2705 RunInitContainerError<br>\u2705 CreatePodSandboxError<br>\u2705 ConfigPodSandboxError<br>\u2705 KillPodSandboxError<br>\u2705 SetupNetworkError<br>\u2705 TeardownNetworkError<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud835\udc70\ud835\udc8e\ud835\udc82\ud835\udc88\ud835\udc86\ud835\udc77\ud835\udc96\ud835\udc8d\ud835\udc8d\ud835\udc69\ud835\udc82\ud835\udc84\ud835\udc8c\ud835\udc76\ud835\udc87\ud835\udc87<\/h2>\n\n\n\n<p>\u2757<br>\u270d This error appears when\u00a0<a href=\"https:\/\/www.linkedin.com\/feed\/hashtag\/?keywords=k8s&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7113056427769790464\" target=\"_blank\" rel=\"noopener\">#k8s<\/a>\u00a0isn&#8217;t able to retrieve the image for one of the\u00a0<a href=\"https:\/\/www.linkedin.com\/feed\/hashtag\/?keywords=containers&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7113056427769790464\" target=\"_blank\" rel=\"noopener\">#containers<\/a>\u00a0of the Pod.<br>There are three common culprits:<br>\u2705 The image name is invalid<br>\u2705 You specified a non-existing tag for the image.<br>\u2705 The image that you&#8217;re trying to retrieve belongs to a private registry and the cluster doesn&#8217;t have credentials to access it.<br>The first two cases can be solved by correcting the image name and tag.<br>For the last, one should add the credentials to your private registry in a Secret and reference it in the Pods<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud835\udc79\ud835\udc96\ud835\udc8f\ud835\udc6a\ud835\udc90\ud835\udc8f\ud835\udc95\ud835\udc82\ud835\udc8a\ud835\udc8f\ud835\udc86\ud835\udc93\ud835\udc6c\ud835\udc93\ud835\udc93\ud835\udc90\ud835\udc93<\/h2>\n\n\n\n<p>\u2757<br>\u270d The error appears when the container is unable to start before application<br>Common causes:<br>\u2705 Mounting a not-existent volume such as ConfigMap or Secrets<br>\u2705 Mounting a read-only volume as read-write<br>More detailed aspect can be found by describing the &#8216;failed&#8217; pod<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud835\udc6a\ud835\udc93\ud835\udc82\ud835\udc94\ud835\udc89\ud835\udc73\ud835\udc90\ud835\udc90\ud835\udc91\ud835\udc69\ud835\udc82\ud835\udc84\ud835\udc8c\ud835\udc76\ud835\udc87\ud835\udc87<\/h2>\n\n\n\n<p>\u2757<br>\u270d If the container can&#8217;t start, then\u00a0<a href=\"https:\/\/www.linkedin.com\/feed\/hashtag\/?keywords=kubernetes&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A7113056427769790464\" target=\"_blank\" rel=\"noopener\">#Kubernetes<\/a>\u00a0shows the CrashLoopBackOff message as a status.<br>Usually, a container can&#8217;t start when:<br>\u2705 There&#8217;s an error in the application that prevents it from starting.<br>\u2705 You\u00a0misconfigured the container.<br>\u2705 The Liveness probe failed too many times.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud835\udc77\ud835\udc90\ud835\udc85\ud835\udc94 \ud835\udc8a\ud835\udc8f \ud835\udc82 \ud835\udc77\ud835\udc86\ud835\udc8f\ud835\udc85\ud835\udc8a\ud835\udc8f\ud835\udc88 \ud835\udc94\ud835\udc95\ud835\udc82\ud835\udc95\ud835\udc86<\/h2>\n\n\n\n<p>\u2757<br>\u270d Assuming that the scheduler component is running fine, here are the causes:<br>\u2705 The cluster doesn&#8217;t have enough resources such as CPU and memory to run the Pod.<br>\u2705 The current Namespace has a ResourceQuota object and creating the Pod will make the Namespace go over the quota.<br>\u2705 The Pod is bound to a\u00a0Pending\u00a0PersistentVolumeClaim.<br>The best option is to inspect the\u00a0Events\u00a0section in the\u00a0&#8220;kubectl describe&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pods can have startup and runtime errors. Startup errors include: \u2705 ImagePullBackoff\u2705 ImageInspectError\u2705 ErrImagePull\u2705 ErrImageNeverPull\u2705 RegistryUnavailable\u2705 InvalidImageName Runtime errors include: \ud83d\udccc \u2705 CrashLoopBackOff\u2705 RunContainerError\u2705 KillContainerError\u2705 VerifyNonRootError\u2705 RunInitContainerError\u2705 CreatePodSandboxError\u2705 ConfigPodSandboxError\u2705 KillPodSandboxError\u2705 SetupNetworkError\u2705 TeardownNetworkError \ud835\udc70\ud835\udc8e\ud835\udc82\ud835\udc88\ud835\udc86\ud835\udc77\ud835\udc96\ud835\udc8d\ud835\udc8d\ud835\udc69\ud835\udc82\ud835\udc84\ud835\udc8c\ud835\udc76\ud835\udc87\ud835\udc87 \u2757\u270d This error appears when\u00a0#k8s\u00a0isn&#8217;t able to retrieve the image for one of the\u00a0#containers\u00a0of the Pod.There are three common culprits:\u2705 The image&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-40532","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/40532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=40532"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/40532\/revisions"}],"predecessor-version":[{"id":40534,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/40532\/revisions\/40534"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=40532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=40532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=40532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}