{"id":32129,"date":"2022-08-16T20:00:00","date_gmt":"2022-08-16T14:30:00","guid":{"rendered":"http:\/\/ismiletechnologies.com\/?p=32129"},"modified":"2022-08-22T20:17:06","modified_gmt":"2022-08-22T14:47:06","slug":"troubleshooting-fixing-readiness-and-liveness-probe-issue-in-azure-aks","status":"publish","type":"post","link":"https:\/\/ismiletechnologies.com\/en_us\/azure\/troubleshooting-fixing-readiness-and-liveness-probe-issue-in-azure-aks\/","title":{"rendered":"Troubleshooting &#038; Fixing Readiness and Liveness probe issue in Azure AKS"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"32129\" class=\"elementor elementor-32129\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-041e514 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"041e514\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5c115fc\" data-id=\"5c115fc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9af11d4 elementor-widget elementor-widget-text-editor\" data-id=\"9af11d4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>We are facing issues with Liveness and readiness. When we deploy the application in the Kubernetes cluster, it goes to Crashloopbackoff.\u00a0\u00a0\u00a0<\/p>\n<p>Here I explained how we solve this issue.\u00a0\u00a0<\/p>\n<p>A liveness probe sends a signal to the container is either alive (passing) or dead (failing). If the container is alive, then the current state is good. If the container is dead, it attempts to heal the application by restarting it.\u00a0\u00a0<\/p>\n<p>Readiness probes to know whether the container being probed is ready to start receiving network traffic. If our container enters a state where it is still alive but cannot handle incoming network traffic, it will not send network traffic to a container that isn&#8217;t ready.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-cc6d519 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"cc6d519\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-0f78554\" data-id=\"0f78554\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-652d328 elementor-widget elementor-widget-image\" data-id=\"652d328\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"270\" height=\"138\" src=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2022\/08\/image-23.png\" class=\"attachment-full size-full wp-image-32130\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-e866da5\" data-id=\"e866da5\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-11742b9 elementor-widget elementor-widget-image\" data-id=\"11742b9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"255\" height=\"138\" src=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2022\/08\/image-25.png\" class=\"attachment-full size-full wp-image-32132\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8e458b elementor-widget elementor-widget-text-editor\" data-id=\"a8e458b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\tIn our case, we are using the Httpget call for Liveness and readiness, as shown in the above snip. For this, we got an Error for the pod to get started and went crashloopbackoff; we tried to increase initialdelayseconds and period seconds also, but it was no use; we got the same Error.\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-260ce70 elementor-widget elementor-widget-image\" data-id=\"260ce70\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"225\" height=\"196\" src=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2022\/08\/image-24.png\" class=\"attachment-full size-full wp-image-32131\" alt=\"\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-677c231 elementor-widget elementor-widget-text-editor\" data-id=\"677c231\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>For This issue, we use an alternative solution. Instead of httpGet, we use tcpSocket for liveness and readiness and increase initialdelayseconds and period seconds; it worked because we are using reverse-proxy sidecar in front of the app in the same pod, and we use the default.conf file, in this file, we add configuration of proxy details, virtual host details, and probe file location where it is placed in the container.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-860b50d elementor-widget elementor-widget-image\" data-id=\"860b50d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"582\" height=\"333\" src=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2022\/08\/image-26b.png\" class=\"attachment-full size-full wp-image-32140\" alt=\"\" srcset=\"https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2022\/08\/image-26b.png 582w, https:\/\/ismiletechnologies.com\/wp-content\/uploads\/2022\/08\/image-26b-300x172.png 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-31e491c elementor-widget elementor-widget-text-editor\" data-id=\"31e491c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\tSo, this is the way we resolve the issue.\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-7e66025 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"7e66025\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-48b785e\" data-id=\"48b785e\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ea8841e elementor-widget elementor-widget-spacer\" data-id=\"ea8841e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-5d2216d\" data-id=\"5d2216d\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d9cb12e elementor-widget elementor-widget-heading\" data-id=\"d9cb12e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Cloud Engineer<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-19cc4b6 elementor-widget elementor-widget-heading\" data-id=\"19cc4b6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Gabriel Chutuape<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-305762b elementor-widget elementor-widget-text-editor\" data-id=\"305762b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>A technology enthusiast passionate about automation, Gabriel Chutuape is a Cloud Engineer at ISmile Technologies. He\u2019s part of the ISmile Technologies Cloud enablement team that help customers to design\/solution\/project engineering, integrating and implementing infrastructure technologies &amp; services.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-2f8e3fc elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2f8e3fc\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-df47329\" data-id=\"df47329\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5be6175 elementor-widget elementor-widget-spacer\" data-id=\"5be6175\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-2bb2495\" data-id=\"2bb2495\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a1c8a9a elementor-widget elementor-widget-heading\" data-id=\"a1c8a9a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">CLOUD Engineer<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4e892b8 elementor-widget elementor-widget-heading\" data-id=\"4e892b8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Gopi Krishna<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5eff776 elementor-widget elementor-widget-text-editor\" data-id=\"5eff776\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>I&#8217;m working as Cloud DevOps Engineer. Expertise in technologies of Kubernetes, cloud services and cloud-native services, and DevOps technologies in various clouds.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>We are facing issues with Liveness and readiness. When we deploy the application in the Kubernetes cluster, it goes to Crashloopbackoff.\u00a0\u00a0\u00a0 Here I explained how we solve this issue.\u00a0\u00a0 A liveness probe sends a signal to the container is either alive (passing) or dead (failing). If the container is alive, then the current state is [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":32213,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[245],"tags":[],"class_list":["post-32129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure"],"_links":{"self":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/32129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/comments?post=32129"}],"version-history":[{"count":21,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/32129\/revisions"}],"predecessor-version":[{"id":32305,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/posts\/32129\/revisions\/32305"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media\/32213"}],"wp:attachment":[{"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/media?parent=32129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/categories?post=32129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ismiletechnologies.com\/en_us\/wp-json\/wp\/v2\/tags?post=32129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}