<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by JJotah on Medium]]></title>
        <description><![CDATA[Stories by JJotah on Medium]]></description>
        <link>https://medium.com/@JJotah?source=rss-bdc0d7ee1263------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nm7FtxO5Fdnpm8W2dZy0GA.jpeg</url>
            <title>Stories by JJotah on Medium</title>
            <link>https://medium.com/@JJotah?source=rss-bdc0d7ee1263------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:54:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@JJotah/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Debug Kubernetes App Errors Like a Pro 2/3]]></title>
            <link>https://medium.com/@JJotah/how-to-debug-kubernetes-app-errors-like-a-pro-2-3-88b32586959f?source=rss-bdc0d7ee1263------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b32586959f</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[JJotah]]></dc:creator>
            <pubDate>Mon, 01 May 2023 13:40:13 GMT</pubDate>
            <atom:updated>2023-05-01T13:40:48.969Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuing with our debugging journey, let’s move on to create deployment definition</p><pre>kubectl create deploy nginx --image=nginx --dry-run=client -o yaml &gt; deploy-nginx-course.yaml -- sleep 23132</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfc13HIbIKIIGtB7v8yTuQ.png" /></figure><p>Using the “kubectl run” command with the “ — dry-run” option, we can preview and export the yaml definition to a file. In addition, to avoid forgetting how to launch a command in kubernetes, I sent a command as a parameter, which gave me the definition to copy and paste in the container. Afterwards, we can open the exported yaml file and add the sidecar to it. The sidecar can include a “sleep” command to allow the container to run.</p><p>We open the file “deploy-nginx-course.yaml” and we will add it the sidecar</p><pre>vi deploy-nginx-course.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*xdbuDywRSvRB2-62xMHlUg.png" /></figure><p>In this process, we added a sidecar container with Ubuntu and a command to pause the container. After editing the YAML file and saving it, we applied it to Kubernetes to ensure that the deployment and pods were created successfully.</p><pre>kubectl apply -f deploy-nginx-course.yaml<br>kubectl get deploy &amp;&amp; kubectl get pod</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*t7lOkALR3E9QCWP0kNfEFw.png" /></figure><p>Once the pod is deployed, we check the status of the containers in the pod. If the application is not ready, we check the logs again. However, if the application is ready and did not restart, we can go into the Ubuntu container.</p><pre>kubectl exec -it POD-NAME -c CONTAINER-NAME COMMAND</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vaQtEFgaj-eRopRk6HnYEw.png" /></figure><p>Typically, I use the Alpine or Ubuntu image as it comes with shell commands like “sh” and “bash”. This helps us access the container without needing to check any Entrypoints for other images. After accessing the Ubuntu container, we install the curl command to check if the Nginx is running correctly.</p><pre>apt update<br>apt install curl netcat -y<br>curl localhost<br>nc -v localhost 80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*mMyEuELCChfGSyMaOZ22jA.png" /></figure><p>If the application seems to be working fine, we need to ensure that the problem is not within the container itself. We can check this by testing if the Nginx is available outside the pod. To do this, we create a new container in the same namespace as the application.</p><pre>kubectl run alpine --image=alpine -- sleep 231312</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*YT1nhRAg0H-rubCE93Pnwg.png" /></figure><p>We then create an Alpine pod and remove the sidecar from the container. Next, we copy the Nginx pod IP and install the curl command to test it.</p><pre>kubectl get pod -o wide</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FM7b1njs0bVxhGIoT9qSbA.png" /></figure><pre>kubectl exec -it alpine sh<br>apk add curl<br>curl POD-IP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*lh4fXzQI85U0Vd9PUCOn8g.png" /></figure><p>We also test it using the DNS name with “pod-ip-address.my-namespace.pod.cluster-domain.example.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*uWTo8cyG77lUmBRoS0YU1w.png" /></figure><p>I also recommend you to launch the same test with the same pod in different namespace where your application is located. If something failed you need to check the following solutions</p><p>We also recommend launching the same test with the same pod in a different namespace where the application is located. If something fails, we need to check the following points:</p><ol><li>Check the port exposed by deployment</li><li>Check the port exposed by the container/pod</li><li>Check any network policy created on your namespace</li><li>Check any security policy or something that could make it blocked.</li></ol><p>After ensuring that the application is working fine, we move on to checking the service and ingress connection.</p><p>In the next part, we will continue learning how to debug like a pro. Stay tuned and don’t miss it! Follow the link to the <a href="https://medium.com/@JJotah/how-to-debug-kubernetes-app-errors-like-a-pro-3-3-36fcfbc81e2f"><strong>next page</strong></a>, see you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b32586959f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Debug Kubernetes App Errors Like a Pro 3/3]]></title>
            <link>https://medium.com/@JJotah/how-to-debug-kubernetes-app-errors-like-a-pro-3-3-36fcfbc81e2f?source=rss-bdc0d7ee1263------2</link>
            <guid isPermaLink="false">https://medium.com/p/36fcfbc81e2f</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[JJotah]]></dc:creator>
            <pubDate>Mon, 01 May 2023 13:39:30 GMT</pubDate>
            <atom:updated>2023-05-01T13:39:30.073Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuing with our debugging journey, let’s move on to debug the service and the ingress side!</p><p>As we saw in my first blog post, I like to represent Kubernetes as a layered onion. We have previously verified that Kubernetes has services that expose applications. Let’s first collect the service IP.</p><pre>kubectl get svc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*fP-bFUP0PsJJzT3nnv-gFQ.png" /></figure><p>Then we reconnect to the Alpine pod and check if the service responds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*ldgsOsd7cpvOqQJTtt5vdA.png" /></figure><p>In this case, it isn’t responding, so the service may have a problem. The first thing we should do is check the service definition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*sMcQZfsO5P1g0TvXPTmQeg.png" /></figure><p>With this service definition, the more experienced may have already noticed the problem when creating the deployment instead of a pod in the previous lesson. But for newcomers, let me explain how the service works quickly.</p><p>The service points to the deployment or pod with the selector and labels. In this case, the service is pointing to “run: nginx-p,” while when we created the deployment, we put “app: nginx.”</p><p>To confirm this theory, we will execute:</p><pre>kubectl get deploy -l app=nginx-p<br>kubectl get deploy -l app=nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*flPKHbRKcM6gp4b6LmrjHg.png" /></figure><p>Knowing what the problem is, we will solve it quickly by editing the service online. If you don’t trust this, you always have the option to change the service definition file and apply it.</p><pre>kubectl edit svc SVC-NAME</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*cbaHnYMHrkdZOzSSHMAdeQ.png" /></figure><p>Once saved or applied, we reconnect to the Alpine pod and test the connection via the svc IP.</p><pre>kubectl get svc<br>kubectl exec -it alpine sh<br>curl SVC-IP</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rYHf1P947kR7ysLSMxJzBg.png" /></figure><p>Now that our service is working correctly, we will focus on the ingress part pointing to the service.</p><p>We check the ingress definition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*45-lQZF4VnT1wSLBraOwlQ.png" /></figure><p>Here we see the same as with the service, that the ingress has “nginx-p” as the service name and our service is called “nginx,” and the port is 80, the same port the service uses. Therefore, we need to change the service name to the correct one and check it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*hVHCz2lTVFcTMPeffIBnGg.png" /></figure><p>Once the ingress is changed and saved, we check that everything works correctly from outside the cluster (from our local machine).</p><pre>curl test.jjotah.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*GUxo7DNs0nE_bVR9kopRtQ.png" /></figure><p>To show you that it works correctly, we will change the message of Nginx to display it on the web and console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*qco5GBDeoaQYt-XSdwR4wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*lTcxFfeLqXQMK8cSN0ca7A.png" /></figure><p>CONCLUSIONS:</p><ol><li>To debug, we will follow the methods from <strong>top to bottom</strong> and from <strong>bottom to top</strong> based on the first part that I published.</li><li>You need to understand how the application works, the code, what requirements it needs, and more.</li><li>Just because the application is running doesn’t mean that it works correctly. That is, if the application is running, it may not have error control, the port may not be exposed correctly, or several other reasons. Never trust that the application works correctly (provided you have reviewed everything in your scope).</li><li>External factors to Kubernetes are essential. Factors such as CDNs, Firewalls, networks, storage, and others that are external to Kubernetes are essential to the cluster’s operation. We will have to review everything that may affect the application’s use.</li><li>The load balancer and DNS are also important for the application’s operation, so we need to check that the ingress-controller created the load balancer and target groups well, the ports exposed in the load balancer, and the ingress.</li><li>Basic components. Although it is rare, we have to keep in mind that the etcd, apiserver, controller-manager, scheduler, and nodes may also fail. If you ever see that they are failing and do not see any type of error in the ingress-controller, etc… it may be something generic to Kubernetes, and I always recommend going to the apiserver and others to see the cluster’s behavior.</li><li>Network plugin. It is true that, like the basic components, it is complicated to fail, especially if the networks are managed by a public cloud. However, based on my on-premises experience, it is a risk factor that we must consider on all occasions.</li></ol><p>The best thing about this technique is that we covered all the basic points, and in the future, I will work to create new blogs by examining each resource individually. The bottom-up method can even go further down by connecting to the nodes and executing commands at the container level using tools such as <a href="https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md"><strong>crictl</strong></a> or <a href="https://www.docker.com/"><strong>docker</strong></a> to see the container’s real-time performance instead of the pod. By going layer by layer, we can debug the application more effectively and understand where Kubernetes might be failing.</p><p>If you have any suggestions, improvements, or ideas for future blog posts, please feel free to leave your comments. And if you need urgent help, you can always contact me on the official Kubernetes Slack channel at kubernetes-users, mentioning me (@JJotah), and I’ll try to respond and assist you as soon as possible.</p><p>Thank you very much for reading the posts, and I hope it was helpful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36fcfbc81e2f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Debug Kubernetes App Errors Like a Pro 1/3]]></title>
            <link>https://medium.com/@JJotah/how-to-debug-kubernetes-app-errors-like-a-pro-1-3-34d61b31358e?source=rss-bdc0d7ee1263------2</link>
            <guid isPermaLink="false">https://medium.com/p/34d61b31358e</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[JJotah]]></dc:creator>
            <pubDate>Mon, 01 May 2023 13:11:24 GMT</pubDate>
            <atom:updated>2023-05-01T13:41:16.519Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s rapidly advancing technological landscape, migrating from a monolithic to microservices architecture is becoming increasingly common. However, for those who are less experienced in the field, adapting to these new resources can present a significant challenge.</p><p>Whether you’re part of a development team, DevOps, infrastructure, or any other technical team, this article will provide valuable insights on how to optimize your debugging process.</p><p>You’ll learn about the tools and strategies I personally use to save time and improve efficiency when debugging microservices.</p><p>Keep reading to discover expert tips and tricks on how to debug microservices like a pro!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*6nmKer92Gxt7llqfFu7hpg.png" /></figure><p>Before diving into the world of debugging errors in Kubernetes, I highly recommend reading my previous article, <a href="https://medium.com/@JJotah/kubernetes-a-different-perspective-4f1402b03aa6">“Kubernetes: Another Perspective.”</a> Once you’ve done that, I want to emphasize that the key to debugging errors in Kubernetes is to have a perfect understanding of the application. It isn’t just a matter of knowing that dependencies exist between other applications, or that a certain port needs to be exposed, or that there’s a requirement for connection to another application within the same Kubernetes cluster.</p><p>To truly succeed in debugging Kubernetes errors, <strong>it’s crucial to fully immerse yourself in the world of developers</strong>, and gain a deep understanding of how these applications work and what they need in order to function properly. By doing so, you’ll be better equipped to tackle any errors that may arise, and ensure that your applications run smoothly and efficiently.</p><p>So take the time to fully understand your applications and their dependencies, and you’ll be well on your way to becoming a Kubernetes debugging expert!</p><p>This post is primarily focused on what to do when your application is already within Kubernetes and is experiencing issues, <strong>not when the application itself has errors or when an external factor is blocking it</strong>. We’ll also cover some common error scenarios.</p><p>When it comes to debugging, I have two approaches depending on the criticality and the level of familiarity with the application: top-down and bottom-up.</p><h4>Top-down approach.</h4><p>This method is used when we know the application well and are confident that the issue lies within the Kubernetes side of things and the emergency calls and solving the problem is a priority.</p><p>We’ll begin by reviewing the ingress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*j-svnALCqAA4QZELsGV5Ng.png" /><figcaption>user to ingress</figcaption></figure><p>As we can see in the upper image, a user is attempting to connect to the Kubernetes ingress via a domain called “testing.jjotah.com.” Typically, if there is an error, it’s because the user is unable to connect to the application, or they are encountering some application errors. As we can see in the image, when an error occurs, the user attempts to connect with the ingress, and that may or may not be where the problem lies.</p><p>I’ll share with you some commands that work really well for me.</p><ul><li><strong>nc</strong> → a command-line utility for reading and writing data between two computer networks</li><li><strong>curl</strong> → a command line tool that enables data exchange between a device and a server through a terminal</li><li><strong>kubectl</strong> → a command line tool for communicating with a Kubernetes cluster’s control plane, using the Kubernetes API. (alias <em>k</em>)</li></ul><p>In this case, we tried to check if the port is open with the <strong>nc</strong> command</p><pre>nc -v test.jjotah.com 443</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*K-VxyMbPFVTsNtKSVJLVNA.png" /></figure><p>When debugging issues related to domain verification with ports, it’s important to consider all the factors involved. In this case, when the error “Name or service not known” appears, I recommend following the next steps:</p><ol><li>Verify the DNS settings in your domain provider. For this scenario, we need to confirm that the domain “test.jjotah.com” is pointing to the load balancer created by the ingress controller. To check this, we can use the “dig” command and verify that it’s pointing to the IP of the load balancer created with MetalLB in our kind cluster, as shown in the image.</li></ol><p>In my case was that I didn’t create the DNS, so after create the DNS I pointed the DNS name into my load balancer ip address.</p><pre>dig test.jjotah.com | grep test.jjotah.com</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*83unyoY4UihvNLA6NblGCA.png" /><figcaption>dig command</figcaption></figure><p>2. Ensure that external network connections at the cluster level are properly configured. This means reviewing any security settings or other factors that could be impacting the client machine’s DNS, particularly if the issue is only affecting one individual. By carefully checking all of these factors, we can effectively debug the issue and get our application back up and running as quickly as possible.</p><p><strong>INGRESS PART</strong></p><p>When we have already created the DNS we can test again the connection to “443 port”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*BOVxeMIcQiH_QXUt8jjwEw.png" /></figure><p>Now this problem is “No route to host”, so I recommend checking:</p><ol><li>If you have something between user and ingress. Like firewalls, CDN, or something that is working outside the cluster</li><li>Ingress definition</li></ol><pre>kubectl get ing</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*U-AoCihkydgIGtGwy3abjQ.png" /><figcaption>kubectl get ing</figcaption></figure><p>Here we find the first problem: we are doing checks to see if “443 port” is up and we have access to “80 port”, so we must try “80 port”.</p><p>If checking the “80 port&quot; you are facing the same issue, <strong>maybe you should start with the bottom-up approach.</strong></p><p>Let’s start by checking the container. As we know, the minimum resources in Kubernetes are pods that contain containers. Hence, we need to check if the pod is running correctly. Assuming you are working in the namespace where your application is located, we can use the following command to check the pod’s status:</p><pre>kubectl get pod</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*NWv7CddDE7_obg_zk-JDIQ.png" /></figure><p>In this case, the application was restarted three times, and the last restart was six minutes ago. Therefore, we need to identify the root cause of the issue. To do so, execute the following commands, replacing POD-NAME with your application pod’s name.</p><pre>kubectl logs POD-NAME</pre><pre>kubectl describe pod POD-NAME</pre><pre>kubectl get events</pre><p>Check for any errors, and if there is nothing, you can switch to the kube-system namespace and check the main components, executing the same commands on the following pods.</p><ul><li>ETCD</li><li>Apiserver</li><li>Controller-Manager</li><li>Scheduler</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*-9deZALX_vbJJNVch6mUmA.png" /></figure><p>If the issue persists, you might have to connect to the container to check the application. Although the following command is deprecated, it can still be used to connect to the container:</p><p>I know that the following command is DEPRECATED, but I’m an old school boy hahaha</p><pre>kubectl exec -it POD-NAME bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ym4PGjdH7BasfWQDFTCbJg.png" /></figure><p>Inside the container, we need to check if our application is running (in my case, I checked if “nginx” was running and exposing the correct port). We can use the curl command on localhost to verify if the application is working correctly at the container level.</p><pre>curl localhost</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*Spx9U244yiGYqUVrifyQPA.png" /></figure><p>However, some containers may not have the required permissions to install commands like curl/nc/telnet or execute them. These containers are referred to as <a href="https://github.com/GoogleContainerTools/distroless">distroless</a>. In such cases, it is best to create a Sidecar inside our application definition to install everything required for debugging.</p><p>If we have just a pod with “nginx”, we should convert it into a deployment and add a sidecar to debug it. To do so, we can delete the “nginx” pod and create a deployment definition.</p><pre>kubectl delete pod nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*9FjhYL0eXHly7XKFPqQ3qA.png" /></figure><p>In the next part, we’ll continue learning how to debug like a pro. Stay tuned and don’t miss it! Follow the link to the <a href="https://medium.com/@JJotah/how-to-debug-kubernetes-app-errors-like-a-pro-2-3-88b32586959f"><strong>next page</strong></a>, see you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34d61b31358e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes, a Different Perspective.]]></title>
            <link>https://medium.com/@JJotah/kubernetes-a-different-perspective-4f1402b03aa6?source=rss-bdc0d7ee1263------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f1402b03aa6</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[JJotah]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 19:15:37 GMT</pubDate>
            <atom:updated>2023-04-22T10:50:14.398Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello to the entire community of Kubernetes and microservices enthusiasts!</p><p>Today, I want to share a different perspective on Kubernetes that may not be the usual one. After 5 years of experience in the industry and working with Kubernetes, I would call it the “Onion of Microservices”.</p><p>On the kubernetes <a href="https://kubernetes.io/docs/concepts/overview/components/">official documentation</a> we can see how they describe the components of control plane / nodes. But for technical people and even non-technical people it can be hard to understand, mostly if you are working with application servers like Apache, IIS, Jboss, Websphere, Weblogic…</p><p>Let me explain my point of view:</p><p>Kubernetes works in layers.</p><ol><li>Container orchestration layer</li><li>Pod orchestration layer</li><li>Services and Endpoints layer</li><li>Ingress and Ingress Controllers layer</li></ol><p>Keep with me as I’ll dive deeper into each layer in this article, highlighting their importance and how they fit into the overall architecture of Kubernetes. Join me on this journey to uncover a new way of looking at Kubernetes!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*fMDeqGv_Ryml4viPrpkRrA.png" /></figure><h3>1. Container orchestration layer</h3><p>In Kubernetes, container orchestration is achieved through Pods, which are the smallest and simplest units in the Kubernetes object model. Pods represent a single instance of a running process and can contain one or more containers. They are responsible for grouping containers that work together, sharing the same network and storage space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/1*ZB0p2C83kODfL62w4oFIfg.png" /></figure><h3>2. Pod orchestration layer</h3><p>To address this challenge, Kubernetes provides higher-level controllers such as ReplicaSets, Deployments, StatefulSets, and DaemonSets, which orchestrate the management of Pods at a higher level of abstraction.</p><ul><li><strong>ReplicaSets</strong>: a ReplicaSet ensures that a specified number of identical Pods are running at all times. It monitors the status of Pods and automatically creates or deletes Pods to maintain the desired number of replicas.</li><li><strong>Deployments</strong>: a Deployment is a higher-level abstraction over ReplicaSets, providing declarative updates for Pods and managing the rollout of new versions of an application. It allows for rollbacks, scaling, and controlled updates with minimum downtime.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cNbLexJL8kxt_inpIP9uug.png" /><figcaption>image from <a href="https://www.bluematador.com/">https://www.bluematador.com/</a></figcaption></figure><ul><li><strong>StatefulSets</strong>: a StatefulSet is used for managing stateful applications, where Pods have a unique hostname and persistent identities. It ensures ordered and graceful deployment and scaling of Pods, preserving their identities across rescheduling.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*PF6iw3ywBFKQ8q8Dj1P3HA.png" /><figcaption>image from <a href="https://www.bluematador.com/">https://www.bluematador.com/</a></figcaption></figure><ul><li><strong>DaemonSets</strong>: a DaemonSet ensures that a specific Pod runs on all or selected nodes in a cluster. It is typically used for running system daemons, log collectors, or other applications that need to run on every node.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*tp0lktv7vm-k7BbGhqkW1A.png" /><figcaption>image from <a href="https://www.bluematador.com/">https://www.bluematador.com/</a></figcaption></figure><h3>3. Services and Endpoints layer</h3><p>In Kubernetes, Services and Endpoints are considered a higher layer than Deployments as they provide an additional abstraction for exposing and routing traffic to Pods in a cluster.</p><h3>4. Ingress and Ingress Controllers layer</h3><p>In Kubernetes, the Ingress and Ingress Controllers layer is considered a higher-level layer compared to Services and Endpoints. This layer provides advanced routing and load balancing capabilities for incoming traffic from outside the cluster to the Services running inside the cluster. Ingress Controllers are responsible for managing and configuring the Ingress rules, which define how incoming traffic should be directed to different Services based on the requested domain, path, or other criteria. This layer enables more advanced routing and traffic management features, making it a higher-level abstraction for handling external traffic compared to Services and Endpoints.</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*1rcSSz5HUNK-GzqhcbjwrA.png" /><figcaption>image from <a href="https://matthewpalmer.net/kubernetes-app-developer/articles/kubernetes-ingress-guide-nginx-example.html">https://matthewpalmer.ne</a>t</figcaption></figure><p>In my personal perspective, I see the layers of Kubernetes as an onion, with different layers overlapping and providing varying levels of abstraction. While objects like Deployments may manage Replicasets, I like to group them together in the same layer above Pods for debugging purposes. If you were working with old application servers and you work on a middleware team I think that it could be a good point to start working with kubernetes.</p><p>In conclusion, Kubernetes can be seen as an “onion” with its multiple layers of abstraction, ranging from Pods as the foundational layer to Services, Endpoints, Ingress, and Ingress Controllers as higher-level layers. Just like an onion, these layers work together to provide a robust, scalable, and efficient framework for orchestrating and managing microservices in a Kubernetes cluster. Understanding the different layers and their functions can help developers and operators gain a holistic view of Kubernetes architecture and leverage its capabilities effectively. So, next time you work with Kubernetes, remember the “onion” analogy to visualize the layers and their interdependencies in this powerful container orchestration platform!</p><p>#Kubernetes #ContainerOrchestration #Microservices #CloudNative #DevOps #Containerization #K8s #CloudComputing #Docker #ContainerManagement #KubernetesCommunity #Tech #CloudInfrastructure #DevCommunity #ContainerNetworking #CloudNativeApps #CloudDeployment #KubernetesDeployment #ContainerizationStrategy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f1402b03aa6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>