<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amira Abidi</title>
    <description>The latest articles on DEV Community by Amira Abidi (@amira_abidi).</description>
    <link>https://dev.to/amira_abidi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4071897%2F77d0ea5b-1d71-495f-8327-cf783cccdea0.jpg</url>
      <title>DEV Community: Amira Abidi</title>
      <link>https://dev.to/amira_abidi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amira_abidi"/>
    <language>en</language>
    <item>
      <title>What If We Tested Our Infrastructure Like We Test Our Applications?</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:59:59 +0000</pubDate>
      <link>https://dev.to/amira_abidi/what-if-we-tested-our-infrastructure-like-we-test-our-applications-51h4</link>
      <guid>https://dev.to/amira_abidi/what-if-we-tested-our-infrastructure-like-we-test-our-applications-51h4</guid>
      <description>&lt;p&gt;&lt;em&gt;Bringing a QA mindset into Infrastructure as Code, Kubernetes, and CI/CD.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In software development, we rarely consider an application ready just because its code compiles. We run unit tests, integration tests, functional tests, and sometimes performance tests to make sure it behaves as expected.&lt;/p&gt;

&lt;p&gt;But what about infrastructure?&lt;/p&gt;

&lt;p&gt;With Infrastructure as Code (IaC), infrastructure is now defined, versioned, and deployed through code. We can review it, automate it, and reproduce it. Yet, simply being able to deploy infrastructure doesn't mean it is correct, secure, or reliable.&lt;/p&gt;

&lt;p&gt;After spending several years in software testing and moving into Cloud and DevOps, I started looking at infrastructure from a QA perspective.&lt;/p&gt;

&lt;p&gt;The question is simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if we tested our infrastructure with the same discipline we apply to our applications?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let's explore how to put this mindset into practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Infrastructure Testing Approach
&lt;/h2&gt;

&lt;p&gt;Infrastructure testing should not be limited to checking whether a configuration can be deployed. It should cover several layers, from static validation to runtime behavior.&lt;br&gt;
&lt;/p&gt;

&lt;pre data-lang="mermaid"&gt;&lt;code&gt;flowchart TD
    A["Infrastructure as Code&amp;lt;br/&amp;gt;Terraform · Kubernetes · Kustomize"]
    B["Static Validation&amp;lt;br/&amp;gt;Format · Syntax · Security · Policy"]
    C["Configuration Testing&amp;lt;br/&amp;gt;Manifest Validation · Resource Checks"]
    D["Deployment"]
    E["Runtime Testing&amp;lt;br/&amp;gt;Smoke Tests · Health Checks · Connectivity"]
    F["Resilience Testing&amp;lt;br/&amp;gt;Failure Scenarios · Recovery"]
    G["Reliable Infrastructure&amp;lt;br/&amp;gt;Confidence · Repeatability · Feedback"]

    A --&amp;gt; B --&amp;gt; C --&amp;gt; D --&amp;gt; E --&amp;gt; F --&amp;gt; G&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;Each layer catches a different category of potential problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Infrastructure Is Code. It Can Have Bugs Too.
&lt;/h2&gt;

&lt;p&gt;Infrastructure code can introduce many types of issues:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Incorrect network configurations.&lt;/li&gt;
&lt;li&gt;Missing permissions or overly permissive IAM policies.&lt;/li&gt;
&lt;li&gt;Misconfigured Kubernetes resources.&lt;/li&gt;
&lt;li&gt;Missing resource limits.&lt;/li&gt;
&lt;li&gt;Incorrect environment variables.&lt;/li&gt;
&lt;li&gt;Security vulnerabilities in infrastructure definitions.&lt;/li&gt;
&lt;li&gt;Services that deploy successfully but cannot communicate with each other.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some of these issues can be detected before deployment. Others only become visible when the infrastructure is running.&lt;/p&gt;

&lt;p&gt;This is exactly why testing should not stop at syntax validation.&lt;/p&gt;

&lt;p&gt;Just like application testing, infrastructure testing should cover multiple levels.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Level 1 – Validate Before Deployment
&lt;/h2&gt;

&lt;p&gt;The first step is to catch problems as early as possible.&lt;/p&gt;

&lt;p&gt;For Terraform, several commands and tools can help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;terraform fmt -check&lt;/code&gt;: checks whether Terraform files follow the expected formatting.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;terraform validate&lt;/code&gt;: checks the syntax and internal consistency of the configuration.&lt;/li&gt;
&lt;li&gt;TFLint: identifies potential Terraform configuration issues.&lt;/li&gt;
&lt;li&gt;Checkov: scans Infrastructure as Code for security and compliance misconfigurations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a basic Terraform validation stage in GitLab CI could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;terraform_validate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;stage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;validate&lt;/span&gt;
  &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;hashicorp/terraform:latest&lt;/span&gt;
  &lt;span class="na"&gt;script&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;terraform fmt -check -recursive&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;terraform init -backend=false&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;terraform validate&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This stage helps identify formatting and configuration errors before infrastructure is deployed.&lt;/p&gt;

&lt;p&gt;However, there is an important distinction: a successful validation does not guarantee that the infrastructure will work correctly in AWS.&lt;/p&gt;

&lt;p&gt;It only confirms that certain checks have passed.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Level 2 – Test the Configuration
&lt;/h2&gt;

&lt;p&gt;A configuration can be syntactically valid and still be incorrect.&lt;/p&gt;

&lt;p&gt;This is particularly important with Kubernetes.&lt;/p&gt;

&lt;p&gt;For example, a Deployment manifest might be valid YAML but contain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An incorrect container image.&lt;/li&gt;
&lt;li&gt;A missing environment variable.&lt;/li&gt;
&lt;li&gt;An inappropriate number of replicas.&lt;/li&gt;
&lt;li&gt;Missing CPU or memory requests and limits.&lt;/li&gt;
&lt;li&gt;An incorrect Service selector.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Tools such as &lt;code&gt;kubectl&lt;/code&gt; and Kustomize help validate and inspect Kubernetes configurations before applying them.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl apply --dry-run=client -f deployment.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This performs client-side validation without creating resources in the cluster.&lt;/p&gt;

&lt;p&gt;With Kustomize, we can also generate and inspect the final manifests for each environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl kustomize overlays/dev
kubectl kustomize overlays/prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is useful when the same application has different configurations for development and production.&lt;/p&gt;

&lt;p&gt;But again, validating a manifest does not prove that the application will behave correctly once deployed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A valid configuration is not necessarily a correct configuration.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Level 3 – Test After Deployment
&lt;/h2&gt;

&lt;p&gt;This is where infrastructure testing becomes closer to functional testing.&lt;/p&gt;

&lt;p&gt;Once resources are deployed, we need to verify that they actually work.&lt;/p&gt;

&lt;p&gt;Some examples include:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Health checks&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is the application responding?&lt;/li&gt;
&lt;li&gt;Are Kubernetes Pods ready?&lt;/li&gt;
&lt;li&gt;Are the expected replicas running?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Connectivity tests&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can the application reach the database?&lt;/li&gt;
&lt;li&gt;Can services communicate with each other?&lt;/li&gt;
&lt;li&gt;Is the application accessible through the Load Balancer?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Smoke tests&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the main API endpoint return a successful response?&lt;/li&gt;
&lt;li&gt;Can the application perform a basic database operation?&lt;/li&gt;
&lt;li&gt;Are critical application features available?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a simple HTTP smoke test could be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl --fail --retry 5 --retry-delay 3 \
  https://my-application.example.com/health
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This check verifies that the application responds successfully after deployment.&lt;/p&gt;

&lt;p&gt;It is a small test, but it can catch issues that static validation cannot detect.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Level 4 – Test Failure Scenarios
&lt;/h2&gt;

&lt;p&gt;Testing only the successful path is not enough.&lt;/p&gt;

&lt;p&gt;In QA, we also investigate how an application behaves when something goes wrong.&lt;/p&gt;

&lt;p&gt;Infrastructure deserves the same attention.&lt;/p&gt;

&lt;p&gt;Consider an application running on Amazon EKS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What happens when a Pod crashes?&lt;/li&gt;
&lt;li&gt;Does Kubernetes restart it?&lt;/li&gt;
&lt;li&gt;Does the application remain available during a rolling update?&lt;/li&gt;
&lt;li&gt;Does the Horizontal Pod Autoscaler react to increased CPU utilization?&lt;/li&gt;
&lt;li&gt;What happens when a database becomes temporarily unavailable?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These scenarios can be explored through controlled tests in a non-production environment.&lt;/p&gt;

&lt;p&gt;For example, deleting a test Pod can help verify whether its Deployment creates a replacement:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl delete pod &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;pod-name&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
kubectl get pods -w
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The goal is not simply to check whether Kubernetes restarts the Pod. We also want to understand whether the application remains available and whether the expected recovery behavior occurs.&lt;/p&gt;

&lt;p&gt;This is where testing, observability, and resilience come together.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Make Infrastructure Testing Part of CI/CD
&lt;/h2&gt;

&lt;p&gt;All these checks become much more valuable when they are automated.&lt;/p&gt;

&lt;p&gt;A possible infrastructure testing workflow could look like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Code validation:&lt;/strong&gt; formatting, syntax, and static analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security checks:&lt;/strong&gt; scan IaC for common security misconfigurations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configuration testing:&lt;/strong&gt; validate Kubernetes manifests and generated configurations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Infrastructure deployment:&lt;/strong&gt; apply the reviewed Terraform changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post-deployment testing:&lt;/strong&gt; run smoke tests and health checks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring:&lt;/strong&gt; observe application and infrastructure metrics.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Not every project needs all these stages from day one.&lt;/p&gt;

&lt;p&gt;The important thing is to introduce checks progressively and make sure that failures are visible before they reach production.&lt;/p&gt;

&lt;p&gt;A successful pipeline should provide more than a green status. It should give us confidence that the infrastructure meets its expected requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Final Thoughts: Bring the QA Mindset to Infrastructure
&lt;/h2&gt;

&lt;p&gt;Moving from application testing to Cloud and DevOps doesn't mean leaving QA principles behind.&lt;/p&gt;

&lt;p&gt;Quite the opposite.&lt;/p&gt;

&lt;p&gt;The habits developed through software testing are directly applicable to infrastructure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Think beyond the happy path.&lt;/li&gt;
&lt;li&gt;Validate assumptions.&lt;/li&gt;
&lt;li&gt;Automate repetitive checks.&lt;/li&gt;
&lt;li&gt;Test failure scenarios.&lt;/li&gt;
&lt;li&gt;Investigate unexpected behavior.&lt;/li&gt;
&lt;li&gt;Verify the actual outcome, not just the deployment status.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Infrastructure as Code makes infrastructure easier to reproduce and manage. Testing makes it easier to trust.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>cloudcomputing</category>
      <category>terraform</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>How I Passed the CKAD in One Month (84%): Strategy, Resources and the Mistakes That Taught Me the Most</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:02:22 +0000</pubDate>
      <link>https://dev.to/amira_abidi/how-i-passed-the-ckad-in-one-month-84-strategy-resources-and-the-mistakes-that-taught-me-the-3ann</link>
      <guid>https://dev.to/amira_abidi/how-i-passed-the-ckad-in-one-month-84-strategy-resources-and-the-mistakes-that-taught-me-the-3ann</guid>
      <description>&lt;p&gt;&lt;strong&gt;From struggling with YAML indentation to scoring 84% on the Certified Kubernetes Application Developer exam in just one month.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On November 5, 2026, I passed the &lt;strong&gt;Certified Kubernetes Application Developer (CKAD)&lt;/strong&gt; exam with a score of &lt;strong&gt;84%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;One month earlier, I was struggling with a seemingly simple exercise: deploying a multi-container Redis Pod using a ConfigMap and an &lt;code&gt;emptyDir&lt;/code&gt; volume.&lt;/p&gt;

&lt;p&gt;I was fighting YAML indentation errors and trying to understand how volumes and mounts actually worked together.&lt;/p&gt;

&lt;p&gt;What made the difference wasn't studying more theory. It was practicing consistently, learning from my mistakes, and changing the way I approached the exam.&lt;/p&gt;

&lt;p&gt;In this article, I'll share:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;My background and starting point.&lt;/li&gt;
&lt;li&gt;The resources I used.&lt;/li&gt;
&lt;li&gt;My one-month preparation plan.&lt;/li&gt;
&lt;li&gt;My practice exam scores.&lt;/li&gt;
&lt;li&gt;The three-pass strategy that took me from 54% to 91% on a mock exam.&lt;/li&gt;
&lt;li&gt;The mistakes that cost me the most points.&lt;/li&gt;
&lt;li&gt;My advice for anyone preparing for the CKAD.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  1. My background: From QA to Cloud and DevOps
&lt;/h2&gt;

&lt;p&gt;I'm a computer engineer with more than eight years of experience in Quality Assurance, test automation and systems validation, mainly in the telecom and video/OTT industries.&lt;/p&gt;

&lt;p&gt;I'm currently transitioning towards Cloud, Infrastructure and DevOps engineering.&lt;/p&gt;

&lt;p&gt;Before starting my CKAD preparation, I already had several AWS certifications, including AWS DevOps Engineer Professional, HashiCorp Terraform Associate and Kubernetes and Cloud Native Associate (KCNA).&lt;/p&gt;

&lt;p&gt;I was familiar with Kubernetes concepts, but there was a significant gap between understanding the theory and being able to execute commands efficiently with &lt;code&gt;kubectl&lt;/code&gt; under time pressure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's exactly what the CKAD challenges: practical skills, speed and accuracy.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The resources I used
&lt;/h2&gt;

&lt;p&gt;I relied on four main resources, each serving a different purpose.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Resource&lt;/th&gt;
&lt;th&gt;How I used it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://www.udemy.com/user/mumshad-mannambeth/" rel="noopener noreferrer"&gt;Mumshad Mannambeth's CKAD course&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Learning concepts through Udemy and practicing with KodeKloud labs and exercises.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://killercoda.com/chadmcrowell/course/ckad" rel="noopener noreferrer"&gt;Chad Crowell's CKAD scenarios&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Practicing individual topics in a real terminal environment.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock Exams&lt;/td&gt;
&lt;td&gt;Testing my knowledge, identifying weaknesses and improving time management.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://killer.sh" rel="noopener noreferrer"&gt;killer.sh&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Simulating the exam environment using the two sessions included with the exam.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I also used the official &lt;a href="https://kubernetes.io/docs/" rel="noopener noreferrer"&gt;Kubernetes documentation&lt;/a&gt; and &lt;a href="https://helm.sh/docs/" rel="noopener noreferrer"&gt;Helm documentation&lt;/a&gt; regularly.&lt;/p&gt;

&lt;p&gt;This is particularly important because these are the documentation resources available during the exam. Knowing how to navigate them quickly is part of the preparation.&lt;/p&gt;

&lt;h3&gt;
  
  
  My most useful study habit: Keeping a mistake notebook
&lt;/h3&gt;

&lt;p&gt;One habit made a huge difference throughout my preparation.&lt;/p&gt;

&lt;p&gt;After each exercise, I wrote down:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The commands I had used.&lt;/li&gt;
&lt;li&gt;The errors I encountered.&lt;/li&gt;
&lt;li&gt;Why the errors happened.&lt;/li&gt;
&lt;li&gt;How I fixed them.&lt;/li&gt;
&lt;li&gt;What I needed to remember next time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of simply repeating exercises, I was building a personal reference guide based on my own mistakes.&lt;/p&gt;

&lt;p&gt;By exam day, this notebook had become one of my most valuable preparation resources.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. My one-month preparation plan
&lt;/h2&gt;

&lt;p&gt;I practiced every day, usually for 1.5 to 2 hours.&lt;/p&gt;

&lt;p&gt;My approach was progressive: start with individual concepts, practice them independently, and then move on to full mock exams.&lt;/p&gt;

&lt;h3&gt;
  
  
  Week 1: Building the foundations
&lt;/h3&gt;

&lt;p&gt;I focused on the basics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pods&lt;/li&gt;
&lt;li&gt;ConfigMaps&lt;/li&gt;
&lt;li&gt;Volumes and mounts&lt;/li&gt;
&lt;li&gt;YAML syntax and indentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also spent time doing simple YAML debugging exercises.&lt;/p&gt;

&lt;p&gt;Interestingly, most of my early mistakes were not Kubernetes-related. They were YAML-related.&lt;/p&gt;

&lt;h3&gt;
  
  
  Weeks 2 and 3: Practicing one topic at a time
&lt;/h3&gt;

&lt;p&gt;I worked through Chad Crowell's Killercoda CKAD scenarios.&lt;/p&gt;

&lt;p&gt;The topics included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ConfigMaps and Secrets&lt;/li&gt;
&lt;li&gt;Resource requests, limits and LimitRanges&lt;/li&gt;
&lt;li&gt;Deployments and ReplicaSets&lt;/li&gt;
&lt;li&gt;Services and DNS&lt;/li&gt;
&lt;li&gt;Logs and troubleshooting&lt;/li&gt;
&lt;li&gt;Liveness, readiness and startup probes&lt;/li&gt;
&lt;li&gt;Jobs and CronJobs&lt;/li&gt;
&lt;li&gt;RBAC and securityContext&lt;/li&gt;
&lt;li&gt;Pod Security&lt;/li&gt;
&lt;li&gt;NetworkPolicies&lt;/li&gt;
&lt;li&gt;Kustomize&lt;/li&gt;
&lt;li&gt;Ingress&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My objective was to become comfortable solving each type of task without constantly looking at the solution.&lt;/p&gt;

&lt;h3&gt;
  
  
  Week 4: Mock exams and exam simulation
&lt;/h3&gt;

&lt;p&gt;The final week was dedicated to practice exams.&lt;/p&gt;

&lt;p&gt;I completed the KodeKloud Mock Exams, reviewed every lost point on the same day, and repeated failed exercises on Killercoda.&lt;/p&gt;

&lt;p&gt;A few days before the real exam, I also completed my two killer.sh sessions.&lt;/p&gt;

&lt;p&gt;One rule helped me avoid wasting too much time:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If I was stuck on an exercise for more than 15 minutes, I would read the solution, understand it, and redo the exercise the following day.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The goal was not to spend 45 minutes struggling with one task. It was to understand the problem and learn how to solve it independently.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. My practice exam scores: A few surprises along the way
&lt;/h2&gt;

&lt;p&gt;My scores were far from consistent.&lt;/p&gt;

&lt;p&gt;Some mock exams went very well, while others exposed weaknesses I hadn't expected.&lt;/p&gt;

&lt;p&gt;Here is how I progressed:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Practice exam&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Main takeaway&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock 1&lt;/td&gt;
&lt;td&gt;68%&lt;/td&gt;
&lt;td&gt;Just above the 66% passing threshold. I knew the concepts but was missing important details.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock 4&lt;/td&gt;
&lt;td&gt;54%&lt;/td&gt;
&lt;td&gt;I left four easy questions unanswered because I ran out of time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock 5&lt;/td&gt;
&lt;td&gt;91%&lt;/td&gt;
&lt;td&gt;Same knowledge, but a completely different exam strategy.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock 6&lt;/td&gt;
&lt;td&gt;79%&lt;/td&gt;
&lt;td&gt;Helm and a troubleshooting question with two underlying causes cost me points.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock 7&lt;/td&gt;
&lt;td&gt;72%&lt;/td&gt;
&lt;td&gt;A more difficult exam, with more troubleshooting and Helm questions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;KodeKloud Mock 8&lt;/td&gt;
&lt;td&gt;89%&lt;/td&gt;
&lt;td&gt;No Helm or CRDs, so my weak areas were not tested.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;killer.sh A&lt;/td&gt;
&lt;td&gt;69% (76% after completing skipped questions)&lt;/td&gt;
&lt;td&gt;Several questions I had skipped were actually easy once I had enough time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;killer.sh B&lt;/td&gt;
&lt;td&gt;74%&lt;/td&gt;
&lt;td&gt;Focused Helm practice paid off (5/5), but I still created files on the wrong node.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Real CKAD exam&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;84%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Almost exactly my 83% average across the last four KodeKloud mock exams.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two important lessons emerged from these results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, don't judge your preparation based on a single mock exam.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The difficulty and topic distribution can vary significantly. Look at the overall trend and, more importantly, the types of mistakes you make.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, use your scores to identify what needs more work.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Helm repeatedly cost me points. Once I dedicated an entire practice session to it, the results improved.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The three-pass strategy that changed everything
&lt;/h2&gt;

&lt;p&gt;This was probably the most important improvement in my preparation.&lt;/p&gt;

&lt;p&gt;I went from &lt;strong&gt;54% to 91% on two KodeKloud mock exams&lt;/strong&gt;, without suddenly learning a lot of new Kubernetes concepts.&lt;/p&gt;

&lt;p&gt;The difference was how I managed my time.&lt;/p&gt;

&lt;h3&gt;
  
  
  What went wrong on Mock Exam 4?
&lt;/h3&gt;

&lt;p&gt;Initially, I answered questions in the order they appeared.&lt;/p&gt;

&lt;p&gt;I got stuck on two long questions involving writing CRDs from scratch.&lt;/p&gt;

&lt;p&gt;By the time I finished, I had run out of time and had not even attempted the last four questions.&lt;/p&gt;

&lt;p&gt;Those questions turned out to be among the easiest in the exam.&lt;/p&gt;

&lt;p&gt;I realized that spending too much time on one difficult task could prevent me from securing several easy points elsewhere.&lt;/p&gt;

&lt;p&gt;So I changed my approach.&lt;/p&gt;

&lt;h3&gt;
  
  
  My three-pass strategy
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Pass 1: Secure the quick wins&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Read every question and immediately solve the ones that take less than three minutes.&lt;/p&gt;

&lt;p&gt;Examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Checking logs.&lt;/li&gt;
&lt;li&gt;Adding labels.&lt;/li&gt;
&lt;li&gt;Scaling a Deployment.&lt;/li&gt;
&lt;li&gt;Creating a ConfigMap.&lt;/li&gt;
&lt;li&gt;Running &lt;code&gt;kubectl top&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Flag the longer questions and move on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pass 2: Focus on high-value questions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Prioritize questions worth 7–8%, starting with the topics you know best.&lt;/p&gt;

&lt;p&gt;These questions deserve more time, but you should still avoid getting stuck indefinitely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pass 3: Tackle the difficult questions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use the remaining time for longer or less familiar tasks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Writing a CRD from scratch.&lt;/li&gt;
&lt;li&gt;Debugging a broken controller.&lt;/li&gt;
&lt;li&gt;Investigating complex configuration issues.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At this point, you have already secured the points from the easier questions.&lt;/p&gt;

&lt;h3&gt;
  
  
  My time management rule
&lt;/h3&gt;

&lt;p&gt;I used a simple rule:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approximately one minute per percentage point.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;4% question → around 4 minutes.&lt;/li&gt;
&lt;li&gt;7% question → around 7 minutes.&lt;/li&gt;
&lt;li&gt;10% question → around 10 minutes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If I reached twice the allocated time without making sufficient progress, I flagged the question and moved on.&lt;/p&gt;

&lt;p&gt;This strategy did more than improve my score. It also reduced stress because I knew that a difficult question would not prevent me from answering easier ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. The small mistakes that cost me points
&lt;/h2&gt;

&lt;p&gt;Something interesting happened during my preparation.&lt;/p&gt;

&lt;p&gt;Most of my lost points were not caused by a lack of Kubernetes knowledge.&lt;/p&gt;

&lt;p&gt;They came from small details, forgotten requirements or incorrect assumptions.&lt;/p&gt;

&lt;p&gt;Here are the mistakes I encountered most often.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mistake&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;What I learned&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Incorrect values&lt;/td&gt;
&lt;td&gt;Typing &lt;code&gt;1.23.3&lt;/code&gt; instead of &lt;code&gt;nginx:1.23.3&lt;/code&gt;, using &lt;code&gt;50%&lt;/code&gt; instead of integer &lt;code&gt;2&lt;/code&gt; for &lt;code&gt;maxSurge&lt;/code&gt;, or entering &lt;code&gt;36Gi&lt;/code&gt; instead of &lt;code&gt;3Gi&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Retrieve existing values using &lt;code&gt;-o jsonpath&lt;/code&gt; instead of retyping them.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forgetting part of the task&lt;/td&gt;
&lt;td&gt;Replacing the entire Service selector instead of preserving &lt;code&gt;app: web&lt;/code&gt;, or forgetting an annotation or &lt;code&gt;ingressClassName&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Read the task line by line before finishing.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Working on the wrong machine&lt;/td&gt;
&lt;td&gt;Creating files on the wrong host after overlooking an &lt;code&gt;ssh &amp;lt;node&amp;gt;&lt;/code&gt; instruction.&lt;/td&gt;
&lt;td&gt;Always SSH first and verify with &lt;code&gt;hostname&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Not checking the final state&lt;/td&gt;
&lt;td&gt;A PVC remaining in &lt;code&gt;Lost&lt;/code&gt;, or a Pod entering &lt;code&gt;CrashLoopBackOff&lt;/code&gt; because a volume mount on &lt;code&gt;/var/log&lt;/code&gt; hid &lt;code&gt;/var/log/nginx&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Verify Pod status, readiness, PVC status and Service endpoints.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checking the wrong logs&lt;/td&gt;
&lt;td&gt;Reading the current container logs instead of the previous crashed container.&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;kubectl logs &amp;lt;pod&amp;gt; --previous&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Incorrect CronJob syntax&lt;/td&gt;
&lt;td&gt;Writing &lt;code&gt;* */2 * * *&lt;/code&gt; instead of &lt;code&gt;*/2 * * * *&lt;/code&gt; for an every-two-minutes schedule.&lt;/td&gt;
&lt;td&gt;Remember that the first Cron field represents minutes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mixing up Service ports&lt;/td&gt;
&lt;td&gt;Setting the NodePort as &lt;code&gt;targetPort&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Understand the difference between &lt;code&gt;port&lt;/code&gt;, &lt;code&gt;targetPort&lt;/code&gt; and &lt;code&gt;nodePort&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inventing additional requirements&lt;/td&gt;
&lt;td&gt;Scaling a Deployment that the task explicitly said not to modify.&lt;/td&gt;
&lt;td&gt;Do exactly what the task requests, nothing more.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  My most important troubleshooting habit
&lt;/h3&gt;

&lt;p&gt;Before moving to the next question, I learned to verify the actual state of the resources.&lt;/p&gt;

&lt;p&gt;A successful command does not necessarily mean the task is complete.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is the Pod actually &lt;code&gt;Running&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Is it &lt;code&gt;READY&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Is the PVC &lt;code&gt;Bound&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Are the Service endpoints correct?&lt;/li&gt;
&lt;li&gt;Is the requested configuration really applied?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When something doesn't look right, &lt;code&gt;kubectl describe&lt;/code&gt; and &lt;code&gt;kubectl logs&lt;/code&gt; are usually good places to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. CKAD topics I recommend practicing more in 2026
&lt;/h2&gt;

&lt;p&gt;Beyond the classic topics such as Deployments, Services, ConfigMaps, Secrets and probes, a few areas deserve particular attention.&lt;/p&gt;

&lt;h3&gt;
  
  
  Native sidecars
&lt;/h3&gt;

&lt;p&gt;Since Kubernetes 1.29, native sidecars are represented by init containers with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;restartPolicy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Always&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pay attention to the wording of the task. A native sidecar is not simply another regular container in the Pod specification.&lt;/p&gt;

&lt;h3&gt;
  
  
  Helm
&lt;/h3&gt;

&lt;p&gt;Helm was one of my weaker areas during the mock exams.&lt;/p&gt;

&lt;p&gt;A few things I recommend practicing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding repositories with &lt;code&gt;helm repo add&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Installing charts from repositories versus local chart directories.&lt;/li&gt;
&lt;li&gt;Checking releases with &lt;code&gt;helm list -A&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Specifying namespaces consistently.&lt;/li&gt;
&lt;li&gt;Using &lt;code&gt;--version&lt;/code&gt; to select a chart version.&lt;/li&gt;
&lt;li&gt;Using &lt;code&gt;--reuse-values&lt;/code&gt; when upgrading a release with custom values.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm repo add bitnami https://charts.bitnami.com/bitnami

helm install my-release bitnami/nginx -n default
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember that a chart version and an application image tag are two different things.&lt;/p&gt;

&lt;h3&gt;
  
  
  Ingress
&lt;/h3&gt;

&lt;p&gt;Always pay attention to &lt;code&gt;ingressClassName&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If an Ingress keeps returning 404 errors, check the Ingress Controller logs.&lt;/p&gt;

&lt;p&gt;In some of my mock exams, the actual cause of the problem was clearly documented in those logs.&lt;/p&gt;

&lt;h3&gt;
  
  
  NetworkPolicies
&lt;/h3&gt;

&lt;p&gt;Make sure you understand the difference between AND and OR conditions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separate rules (two YAML list entries) represent OR.&lt;/li&gt;
&lt;li&gt;Multiple selectors within the same rule represent AND.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another important detail: when restricting egress, make sure DNS traffic is allowed on port 53 using both UDP and TCP.&lt;/p&gt;

&lt;p&gt;To target a namespace, remember the built-in label:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="s"&gt;kubernetes.io/metadata.name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  CRDs
&lt;/h3&gt;

&lt;p&gt;Most of the time, you will need to discover and use existing Custom Resource Definitions.&lt;/p&gt;

&lt;p&gt;Useful commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get crd
kubectl api-resources
kubectl explain &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;kind&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;.spec
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you need to write a CRD, use the official documentation as a reference and pay attention to details such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;scope&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Namespaced&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The capital &lt;code&gt;N&lt;/code&gt; matters.&lt;/p&gt;

&lt;h3&gt;
  
  
  Docker and Podman
&lt;/h3&gt;

&lt;p&gt;Don't overlook container image operations.&lt;/p&gt;

&lt;p&gt;Practice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build -t my-image .
docker push my-image
docker run -d --name my-container my-image
docker logs my-container
docker save -o image.tar my-image
docker load -i image.tar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also remember that &lt;code&gt;docker ps&lt;/code&gt; displays running containers by default. Use &lt;code&gt;docker ps -a&lt;/code&gt; to include stopped containers.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Exam day: The experience and the wait for results
&lt;/h2&gt;

&lt;p&gt;I left the exam genuinely unsure whether I had passed.&lt;/p&gt;

&lt;p&gt;At around the one-hour mark, I checked the clock and started panicking because I felt far behind.&lt;/p&gt;

&lt;p&gt;I took a breath, returned to my three-pass strategy and continued working through the questions.&lt;/p&gt;

&lt;p&gt;Looking back, this was probably one of the most important moments of the exam.&lt;/p&gt;

&lt;p&gt;What helped me on the day:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Setting up useful aliases at the beginning:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;alias&lt;/span&gt; &lt;span class="nv"&gt;k&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;kubectl
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;do&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"--dry-run=client -o yaml"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;now&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"--force --grace-period 0"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Running the SSH and context commands provided at the beginning of each question.&lt;/li&gt;
&lt;li&gt;Generating YAML using imperative commands instead of typing everything manually.&lt;/li&gt;
&lt;li&gt;Checking names, namespaces, image tags, ports and requested output formats before validating each task.&lt;/li&gt;
&lt;li&gt;Following the three-pass strategy instead of spending too long on difficult questions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Waiting for the results
&lt;/h3&gt;

&lt;p&gt;The results officially arrive by email, generally within 24 hours of finishing the exam.&lt;/p&gt;

&lt;p&gt;Some candidates report waiting 24 to 36 hours.&lt;/p&gt;

&lt;p&gt;Mine arrived the following afternoon.&lt;/p&gt;

&lt;p&gt;One thing I learned: &lt;strong&gt;the waiting time doesn't tell you anything about your result.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So try to disconnect after the exam. I know it's easier said than done (I probably refreshed my inbox every five minutes!).&lt;/p&gt;

&lt;h2&gt;
  
  
  9. What's next?
&lt;/h2&gt;

&lt;p&gt;Passing the CKAD is another milestone in my transition towards Cloud and DevOps engineering.&lt;/p&gt;

&lt;p&gt;My next objective is the &lt;strong&gt;Prometheus Certified Associate (PCA)&lt;/strong&gt; certification, to strengthen the observability side of my Kubernetes and cloud profile.&lt;/p&gt;

&lt;p&gt;I've already worked with Prometheus and Grafana to monitor LibraryCorner, a project I built and deployed on AWS EKS.&lt;/p&gt;

&lt;p&gt;I'll share more about this project and its architecture in an upcoming article.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts: My advice if you're preparing for the CKAD
&lt;/h2&gt;

&lt;p&gt;If I had to summarize my preparation in five recommendations:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Practice every day.&lt;/strong&gt; A real terminal is much more valuable than simply watching videos.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep track of your mistakes.&lt;/strong&gt; Understanding why something failed is more useful than memorizing the solution.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn to manage your time.&lt;/strong&gt; Secure the easy points before tackling complex tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify everything.&lt;/strong&gt; A successful command doesn't guarantee the requested final state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't panic over mock exam scores.&lt;/strong&gt; Focus on your progress, identify weaknesses and work on them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The CKAD is a practical exam. Knowing Kubernetes concepts is important, but being able to apply them quickly and accurately makes the difference.&lt;/p&gt;

&lt;p&gt;If you're currently preparing for the CKAD, I hope my experience helps you organize your study plan and avoid some of the mistakes I made.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good luck with your preparation, and feel free to share your questions or experiences in the comments!&lt;/strong&gt;&lt;/p&gt;




</description>
      <category>kubernetes</category>
      <category>ckad</category>
      <category>devops</category>
      <category>certification</category>
    </item>
    <item>
      <title>6 AWS Certifications Later: What I Really Learned Along the Way</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Thu, 05 Nov 2026 20:50:43 +0000</pubDate>
      <link>https://dev.to/amira_abidi/6-aws-certifications-later-what-i-really-learned-along-the-way-4o65</link>
      <guid>https://dev.to/amira_abidi/6-aws-certifications-later-what-i-really-learned-along-the-way-4o65</guid>
      <description>&lt;p&gt;Six AWS certifications later, I can say that my understanding of cloud computing has changed significantly.&lt;/p&gt;

&lt;p&gt;But not necessarily for the reasons I expected.&lt;/p&gt;

&lt;p&gt;When I started this journey, my main goal was to build solid cloud and DevOps skills. I wanted to understand how modern cloud infrastructures work, how applications are deployed, and how teams manage systems at scale.&lt;/p&gt;

&lt;p&gt;Coming from a background in QA and software validation, I already had experience with Linux environments, troubleshooting, automation, and working with development teams. However, cloud infrastructure was a different world, and I knew I had a lot to learn.&lt;/p&gt;

&lt;p&gt;Today, after completing six AWS certifications and working on several hands-on projects, I want to share what this journey actually taught me — beyond exam preparation and certification badges.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Six Certifications, Six Different Perspectives
&lt;/h2&gt;

&lt;p&gt;Each certification introduced me to a different aspect of the AWS ecosystem. More importantly, each one helped me develop a different way of thinking about cloud engineering.&lt;/p&gt;

&lt;p&gt;Here are the six certifications I completed and what I took away from each.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Certified Cloud Practitioner
&lt;/h3&gt;

&lt;p&gt;This was my starting point.&lt;/p&gt;

&lt;p&gt;It helped me understand the fundamentals of AWS: its global infrastructure, core services, pricing models, shared responsibility model, and cloud concepts.&lt;/p&gt;

&lt;p&gt;At this stage, I was mainly learning the vocabulary and understanding how the different pieces of the AWS ecosystem fit together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway:&lt;/strong&gt; Before building anything, you need to understand the environment you're working in.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Certified Solutions Architect – Associate
&lt;/h3&gt;

&lt;p&gt;This certification changed the way I approached infrastructure design.&lt;/p&gt;

&lt;p&gt;I started thinking beyond individual services and focusing more on architecture:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How do you design for high availability?&lt;/li&gt;
&lt;li&gt;When should you choose one database solution over another?&lt;/li&gt;
&lt;li&gt;How can you make an application scalable and resilient?&lt;/li&gt;
&lt;li&gt;What are the trade-offs between performance, security, and cost?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I learned that there is rarely one perfect architectural solution. Every decision comes with trade-offs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway:&lt;/strong&gt; Cloud architecture is not about knowing as many AWS services as possible. It's about choosing the right services for the right requirements.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Certified Developer – Associate
&lt;/h3&gt;

&lt;p&gt;This certification helped me better understand the developer's perspective of AWS.&lt;/p&gt;

&lt;p&gt;I explored how applications interact with AWS services, including storage, databases, messaging, APIs, authentication, and application deployment.&lt;/p&gt;

&lt;p&gt;It also helped me understand the importance of application-level security, permissions, and service integrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway:&lt;/strong&gt; Infrastructure and applications cannot be treated as completely separate worlds. Understanding how they interact is essential.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Certified SysOps Administrator – Associate
&lt;/h3&gt;

&lt;p&gt;This one brought me closer to the operational side of cloud engineering.&lt;/p&gt;

&lt;p&gt;Monitoring, logging, troubleshooting, automation, resource management, and operational reliability became central topics.&lt;/p&gt;

&lt;p&gt;I started paying more attention to what happens after an application is deployed.&lt;/p&gt;

&lt;p&gt;How do you detect problems? How do you investigate failures? How do you maintain availability?&lt;/p&gt;

&lt;p&gt;These questions are just as important as designing and deploying infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway:&lt;/strong&gt; Deploying an application is only the beginning. Keeping it healthy and available is another challenge entirely.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Certified DevOps Engineer – Professional
&lt;/h3&gt;

&lt;p&gt;This was probably one of the most challenging steps in my AWS certification journey.&lt;/p&gt;

&lt;p&gt;The focus shifted towards automation, continuous integration and delivery, deployment strategies, infrastructure management, monitoring, and operational excellence.&lt;/p&gt;

&lt;p&gt;It required connecting concepts from architecture, development, and operations.&lt;/p&gt;

&lt;p&gt;I also realized how important it is to understand the complete software delivery lifecycle rather than focusing on individual tools.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway:&lt;/strong&gt; DevOps is not simply about learning tools. It's about improving the way software is built, tested, deployed, and operated.&lt;/p&gt;

&lt;h3&gt;
  
  
  AWS Certified AI Practitioner
&lt;/h3&gt;

&lt;p&gt;This certification introduced me to another important dimension of the cloud ecosystem: artificial intelligence.&lt;/p&gt;

&lt;p&gt;I explored foundational AI and machine learning concepts, generative AI, foundation models, responsible AI, and AWS AI services.&lt;/p&gt;

&lt;p&gt;It was a different learning experience from the infrastructure-focused certifications, but it helped me understand how AI capabilities are becoming part of modern cloud solutions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway:&lt;/strong&gt; Cloud engineering continues to evolve, and staying curious about emerging technologies is important.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What I Learned Beyond the Exam Objectives
&lt;/h2&gt;

&lt;p&gt;Looking back, the most valuable lessons were not necessarily the ones written in the exam guides.&lt;/p&gt;

&lt;p&gt;A few things became particularly clear.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AWS services are interconnected.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Learning S3, IAM, EC2, RDS, Lambda, or EKS individually is useful. But understanding how they work together to support a real application is much more valuable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security cannot be an afterthought.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Identity and access management, least privilege, encryption, network isolation, and secure authentication should be considered from the beginning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everything involves trade-offs.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;High availability, performance, scalability, security, and cost optimization are not independent objectives. Improving one can sometimes affect another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Knowing a service is not the same as knowing how to operate it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can understand how EKS works for an exam and still struggle when a pod cannot communicate with another service, a deployment fails, or an application starts running out of resources.&lt;/p&gt;

&lt;p&gt;That last point leads to what I consider the most important lesson of this journey.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Certifications vs. Hands-On Experience
&lt;/h2&gt;

&lt;p&gt;Passing a certification exam gives you structured knowledge. It validates your understanding of concepts and AWS services.&lt;/p&gt;

&lt;p&gt;But it does not automatically mean you can design, deploy, troubleshoot, and maintain a production-ready infrastructure.&lt;/p&gt;

&lt;p&gt;I realized that I needed to move beyond exam preparation and start building things.&lt;/p&gt;

&lt;p&gt;That's why I started working on LibraryCorner, a personal DevOps project designed to put my learning into practice.&lt;/p&gt;

&lt;p&gt;The project gradually evolved into a complete AWS infrastructure involving:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Terraform:&lt;/strong&gt; Modular infrastructure as code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon EKS:&lt;/strong&gt; Kubernetes cluster and application deployment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon RDS:&lt;/strong&gt; PostgreSQL database with Multi-AZ configuration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS networking:&lt;/strong&gt; VPC, subnets, routing, and load balancing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prometheus and Grafana:&lt;/strong&gt; Monitoring and observability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kubernetes HPA:&lt;/strong&gt; Automatic scaling based on resource utilization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IAM and OIDC:&lt;/strong&gt; Secure authentication and access management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Building this project introduced challenges that certification preparation alone could not reproduce.&lt;/p&gt;

&lt;p&gt;I had to understand how components interacted, investigate unexpected behavior, make architectural decisions, and consider operational costs.&lt;/p&gt;

&lt;p&gt;I also started exploring questions that don't always have straightforward answers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What happens when a monitoring component goes down?&lt;/li&gt;
&lt;li&gt;How can I restore a database after a failure?&lt;/li&gt;
&lt;li&gt;How do I scale an application under load?&lt;/li&gt;
&lt;li&gt;How can I avoid storing long-lived AWS credentials in CI/CD pipelines?&lt;/li&gt;
&lt;li&gt;How much does the infrastructure actually cost?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These questions eventually became the subjects of several technical articles I published on Dev.to.&lt;/p&gt;

&lt;p&gt;And this is where theory started turning into practical understanding.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What I Would Do Differently
&lt;/h2&gt;

&lt;p&gt;If I could start my AWS certification journey again, I would change a few things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Build projects earlier.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Don't wait until you've completed several certifications before opening the AWS console or writing your first Terraform configuration.&lt;/p&gt;

&lt;p&gt;Start experimenting from the beginning.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Avoid collecting certifications just for the sake of it.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Certifications can provide structure and motivation, but the number of badges on your profile is not a measure of your practical ability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Learn by troubleshooting.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Don't just follow tutorials where everything works perfectly.&lt;/p&gt;

&lt;p&gt;Break things intentionally in a controlled environment. Investigate errors, read logs, understand failure scenarios, and try to fix them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Document what you learn.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Writing technical articles forces you to explain concepts clearly. It also helps identify gaps in your understanding.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Don't underestimate the fundamentals.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Linux, networking, scripting, security, and operating system concepts remain essential. Cloud platforms abstract many things, but they don't eliminate the need to understand what's happening underneath.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. What's Next?
&lt;/h2&gt;

&lt;p&gt;Six certifications are not the end of the journey.&lt;/p&gt;

&lt;p&gt;I'm continuing to deepen my knowledge of Kubernetes, infrastructure automation, cloud security, and DevSecOps.&lt;/p&gt;

&lt;p&gt;I'm also working towards the Certified Kubernetes Application Developer (CKAD) certification to strengthen my practical Kubernetes skills.&lt;/p&gt;

&lt;p&gt;More importantly, I want to keep building projects, experimenting with new technologies, and sharing what I learn along the way.&lt;/p&gt;

&lt;p&gt;My background in QA and validation has also shaped how I approach this journey. Quality, reliability, automation, and troubleshooting are not concepts exclusive to testing. They are equally important in cloud and DevOps engineering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;If there's one thing I would like to share with anyone starting their cloud journey, it's this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't make certifications your final destination. Use them as a starting point.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They give you structure, introduce you to important concepts, and help you understand the ecosystem.&lt;/p&gt;

&lt;p&gt;But real learning happens when you start building, breaking, fixing, and improving things yourself.&lt;/p&gt;

&lt;p&gt;Six AWS certifications later, I have a much better understanding of cloud engineering than when I started.&lt;/p&gt;

&lt;p&gt;But I also know how much there is still to learn.&lt;/p&gt;

&lt;p&gt;And that's probably the most exciting part of this journey.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Keep learning. Keep building. Keep experimenting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>cloud</category>
      <category>learning</category>
    </item>
    <item>
      <title>What Happens When Prometheus Goes Down? Monitoring the Monitoring System</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Thu, 29 Oct 2026 20:13:14 +0000</pubDate>
      <link>https://dev.to/amira_abidi/what-happens-when-prometheus-goes-down-monitoring-the-monitoring-system-5dkf</link>
      <guid>https://dev.to/amira_abidi/what-happens-when-prometheus-goes-down-monitoring-the-monitoring-system-5dkf</guid>
      <description>&lt;p&gt;Prometheus is one of the most widely used tools for monitoring Kubernetes environments. It collects metrics, evaluates alerting rules, and helps us understand what is happening inside our applications and infrastructure.&lt;/p&gt;

&lt;p&gt;But there is an important question we sometimes overlook:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens when Prometheus itself becomes unavailable?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If Prometheus stops collecting metrics, dashboards may no longer reflect the current state of the cluster. Alerting rules may stop being evaluated, and the team might not receive the alerts it depends on to detect other incidents.&lt;/p&gt;

&lt;p&gt;This creates a monitoring blind spot: the system responsible for helping us detect problems can become part of the problem.&lt;/p&gt;

&lt;p&gt;In this article, we will explore what happens when Prometheus goes down, how to detect the failure, and how to make a monitoring architecture more resilient.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What breaks when Prometheus goes down?
&lt;/h2&gt;

&lt;p&gt;The impact depends on how Prometheus is deployed and which components depend on it. However, several consequences are common.&lt;/p&gt;

&lt;h3&gt;
  
  
  Metrics stop being collected
&lt;/h3&gt;

&lt;p&gt;Prometheus periodically scrapes metrics from configured targets, such as Kubernetes nodes, applications, and exporters.&lt;/p&gt;

&lt;p&gt;When Prometheus becomes unavailable, scraping stops. Targets may continue running normally, but their metrics are no longer collected by that Prometheus instance.&lt;/p&gt;

&lt;p&gt;After recovery, collection can resume, but the period of downtime may leave gaps in the time series.&lt;/p&gt;

&lt;h3&gt;
  
  
  Dashboards lose visibility
&lt;/h3&gt;

&lt;p&gt;Grafana can still be running even when its Prometheus data source is unavailable. However, panels that depend on that data source may display errors, incomplete data, or no data.&lt;/p&gt;

&lt;p&gt;This is an important distinction: &lt;strong&gt;a working dashboard does not necessarily mean the monitoring system is healthy.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Alerting rules may stop being evaluated
&lt;/h3&gt;

&lt;p&gt;Prometheus evaluates alerting rules using the metrics it collects. If Prometheus is down, its rule evaluation stops.&lt;/p&gt;

&lt;p&gt;If Alertmanager is running separately, it may continue processing alerts it has already received. However, it cannot receive new alerts from the unavailable Prometheus instance.&lt;/p&gt;

&lt;p&gt;As a result, an incident can remain undetected precisely when monitoring is needed most.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Why monitoring Prometheus from Prometheus is not enough
&lt;/h2&gt;

&lt;p&gt;Prometheus exposes its own metrics and health endpoints. These are useful for monitoring its internal state, including resource usage, request activity, and operational problems.&lt;/p&gt;

&lt;p&gt;For example, Prometheus provides health endpoints such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;/-/healthy&lt;/code&gt; — checks whether the server is healthy.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;/-/ready&lt;/code&gt; — checks whether the server is ready to serve traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These endpoints are useful for health checks and orchestration.&lt;/p&gt;

&lt;p&gt;However, there is a limitation: if Prometheus becomes completely unavailable, it cannot reliably report its own failure to the systems that depend on it.&lt;/p&gt;

&lt;p&gt;Imagine the following situation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Prometheus stops responding.&lt;/li&gt;
&lt;li&gt;Its metrics are no longer collected.&lt;/li&gt;
&lt;li&gt;Its alerting rules are no longer evaluated.&lt;/li&gt;
&lt;li&gt;The team expects Prometheus to notify them about the outage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The notification mechanism depends on the component that has failed.&lt;/p&gt;

&lt;p&gt;This is why a resilient monitoring architecture needs an independent way to detect monitoring failures.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How can we detect a Prometheus outage?
&lt;/h2&gt;

&lt;p&gt;The most important principle is to monitor the availability of the monitoring service from outside its own failure domain.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: Use an external health check
&lt;/h3&gt;

&lt;p&gt;An external monitoring service or independent health-check system can periodically request the Prometheus health endpoint.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-f&lt;/span&gt; http://prometheus.example.com/-/healthy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A successful response indicates that the endpoint is responding as expected. A failed request can trigger an alert through a separate notification mechanism.&lt;/p&gt;

&lt;p&gt;The critical detail is that the checker and its alert delivery path must not depend entirely on the Prometheus instance being monitored.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: Monitor the monitoring stack independently
&lt;/h3&gt;

&lt;p&gt;A separate monitoring instance or an external observability service can check the availability of Prometheus, Grafana, and Alertmanager.&lt;/p&gt;

&lt;p&gt;This approach can help detect situations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prometheus becoming unreachable.&lt;/li&gt;
&lt;li&gt;Grafana failing to serve dashboards.&lt;/li&gt;
&lt;li&gt;Alertmanager becoming unavailable.&lt;/li&gt;
&lt;li&gt;A monitoring endpoint returning unexpected responses.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The independent system should also have its own reliable notification path, such as email or an incident-management integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 3: Use Kubernetes health probes appropriately
&lt;/h3&gt;

&lt;p&gt;In a Kubernetes deployment, readiness and liveness probes can help Kubernetes determine whether a Prometheus container is ready or needs to be restarted.&lt;/p&gt;

&lt;p&gt;These probes serve different purposes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Liveness:&lt;/strong&gt; helps detect a process that needs restarting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Readiness:&lt;/strong&gt; indicates whether the container should receive traffic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, Kubernetes probes are not a replacement for end-to-end monitoring. A container can be running while the overall monitoring service remains inaccessible to users.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How can we make Prometheus more resilient?
&lt;/h2&gt;

&lt;p&gt;Detecting an outage is only part of the solution. The architecture should also limit its impact.&lt;/p&gt;

&lt;h3&gt;
  
  
  Run redundant monitoring instances where justified
&lt;/h3&gt;

&lt;p&gt;For environments that require higher availability, multiple Prometheus instances can scrape the same targets independently.&lt;/p&gt;

&lt;p&gt;If one instance fails, another may continue collecting metrics.&lt;/p&gt;

&lt;p&gt;However, running multiple instances does not automatically provide a unified view of historical data or eliminate every monitoring gap. The architecture must account for alert duplication, storage, and how users access metrics.&lt;/p&gt;

&lt;h3&gt;
  
  
  Protect the data you need to retain
&lt;/h3&gt;

&lt;p&gt;Prometheus stores time-series data in its local time-series database (TSDB). In Kubernetes, persistent storage can help preserve that data across pod replacement or restart.&lt;/p&gt;

&lt;p&gt;Without suitable persistent storage, a replacement pod may start with an empty database.&lt;/p&gt;

&lt;p&gt;Persistent storage does not eliminate gaps caused by downtime, and it is not a substitute for a backup and recovery strategy where one is required.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test the recovery process
&lt;/h3&gt;

&lt;p&gt;A resilient system should have a recovery procedure that is understood before an incident occurs.&lt;/p&gt;

&lt;p&gt;Useful questions include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does Prometheus recover automatically after a pod restart?&lt;/li&gt;
&lt;li&gt;Does it retain the expected historical data?&lt;/li&gt;
&lt;li&gt;Are alerting rules loaded correctly after recovery?&lt;/li&gt;
&lt;li&gt;Does Grafana reconnect to the data source?&lt;/li&gt;
&lt;li&gt;Does the team receive a notification if Prometheus becomes unavailable?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These checks turn assumptions about reliability into verifiable expectations.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The QA perspective: validate failure scenarios
&lt;/h2&gt;

&lt;p&gt;Coming from a QA background, I find it useful to think beyond the happy path.&lt;/p&gt;

&lt;p&gt;A monitoring stack should not only be validated when every component is healthy. Its behavior during failures matters just as much.&lt;/p&gt;

&lt;p&gt;A practical validation checklist could include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stop or make a test Prometheus instance unavailable.&lt;/li&gt;
&lt;li&gt;Verify that the independent health check detects the outage.&lt;/li&gt;
&lt;li&gt;Confirm that the notification reaches the intended destination.&lt;/li&gt;
&lt;li&gt;Restore Prometheus and verify that scraping resumes.&lt;/li&gt;
&lt;li&gt;Check whether historical metrics remain available.&lt;/li&gt;
&lt;li&gt;Verify that dashboards and alerting rules return to normal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These tests should be performed in a controlled environment, rather than by disrupting a production monitoring system without an approved procedure.&lt;/p&gt;

&lt;p&gt;The goal is to validate the entire failure-detection and recovery path, not just the Prometheus process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Prometheus is an essential observability component, but it is not immune to failure.&lt;/p&gt;

&lt;p&gt;When it becomes unavailable, metric collection and alert evaluation can stop, leaving teams with reduced visibility into their infrastructure. Relying exclusively on Prometheus to report its own outage creates a potential blind spot.&lt;/p&gt;

&lt;p&gt;The solution is to combine independent health checks, appropriate redundancy, persistent storage where needed, and controlled recovery tests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A monitoring system is only as useful as its ability to tell us when something is wrong — including when the monitoring system itself is the problem.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For me, this is also where QA and DevOps meet: reliability is not just about designing a system that should work. It is about validating what happens when it does not.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>prometheus</category>
      <category>kubernetes</category>
      <category>observability</category>
    </item>
    <item>
      <title>How Much Does My AWS EKS Project Cost? A Practical Cost Breakdown</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Fri, 23 Oct 2026 10:19:25 +0000</pubDate>
      <link>https://dev.to/amira_abidi/how-much-does-my-aws-eks-project-cost-a-practical-cost-breakdown-2d6f</link>
      <guid>https://dev.to/amira_abidi/how-much-does-my-aws-eks-project-cost-a-practical-cost-breakdown-2d6f</guid>
      <description>&lt;p&gt;Building a cloud-native application on AWS is a great way to learn Kubernetes, Infrastructure as Code, and cloud operations.&lt;/p&gt;

&lt;p&gt;But there is one question that deserves attention from the very beginning:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much does it actually cost to run the architecture?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For my LibraryCorner project, I designed an AWS architecture around Amazon EKS, managed PostgreSQL, load balancing, monitoring, and Terraform.&lt;/p&gt;

&lt;p&gt;The goal was not just to deploy an application. It was to build an environment that reflects common cloud engineering practices while understanding the infrastructure and operational costs behind it.&lt;/p&gt;

&lt;p&gt;In this article, I’ll break down the estimated monthly cost of this architecture, explain the main cost drivers, and share a few lessons about keeping cloud spending under control.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: The figures below are indicative estimates for planning purposes, not actual billing data or a guaranteed AWS quote. Actual costs depend on the AWS Region, resource sizes, usage, and pricing options.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The architecture behind the estimate
&lt;/h2&gt;

&lt;p&gt;LibraryCorner uses several AWS services to support a containerized application.&lt;/p&gt;

&lt;p&gt;The main components include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Amazon EKS&lt;/strong&gt; to orchestrate the application containers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon EC2&lt;/strong&gt; for the Kubernetes worker nodes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon RDS for PostgreSQL&lt;/strong&gt; for managed relational data, with a Multi-AZ configuration in production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Application Load Balancer (ALB)&lt;/strong&gt; to route external traffic to the application.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon VPC&lt;/strong&gt; for networking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon ECR&lt;/strong&gt; to store container images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Amazon CloudWatch&lt;/strong&gt; and a Prometheus/Grafana stack for observability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AWS KMS and Secrets Manager&lt;/strong&gt; for encryption and secrets management.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Terraform manages the infrastructure, while Kustomize handles environment-specific Kubernetes configuration.&lt;/p&gt;

&lt;p&gt;This architecture introduces several independent cost categories. Some are directly related to compute, while others come from networking, managed services, and operational tooling.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The estimated monthly budget
&lt;/h2&gt;

&lt;p&gt;For this architecture, I use an indicative planning budget of approximately &lt;strong&gt;$133 per month&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is an illustrative allocation of that budget:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cost category&lt;/th&gt;
&lt;th&gt;Estimated monthly budget&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Amazon EKS&lt;/td&gt;
&lt;td&gt;$73&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;EC2 worker nodes&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon RDS for PostgreSQL&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Application Load Balancer&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Networking and data transfer&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage, monitoring, and supporting services&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$133/month&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These figures are a simplified budget allocation, not a service-by-service AWS price calculation. They should not be interpreted as a verified quote: the actual cost of each component can vary significantly with the selected Region, instance types, storage configuration, traffic, and monitoring setup.&lt;/p&gt;

&lt;p&gt;The purpose of this breakdown is to identify the categories to investigate when estimating a cloud architecture, rather than to predict an exact invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Why Kubernetes infrastructure can be expensive
&lt;/h2&gt;

&lt;p&gt;One important lesson is that running Kubernetes involves more than paying for compute resources.&lt;/p&gt;

&lt;p&gt;Amazon EKS has a cluster management fee, separate from the EC2 instances or other compute resources used by the workloads.&lt;/p&gt;

&lt;p&gt;Worker nodes add another cost, even when the application receives little traffic. If the cluster runs continuously, the underlying infrastructure can continue generating charges while the application is idle.&lt;/p&gt;

&lt;p&gt;This leads to a practical question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need a continuously running Kubernetes cluster for every development and testing activity?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not necessarily.&lt;/p&gt;

&lt;p&gt;For a learning project, it is worth considering whether the environment needs to run 24/7. Creating resources only when needed and deleting them afterward can help reduce costs, provided that persistent data and recovery requirements are handled carefully.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The hidden cost of networking and managed services
&lt;/h2&gt;

&lt;p&gt;Compute is only part of the picture.&lt;/p&gt;

&lt;p&gt;Several supporting services can contribute to the monthly bill:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Load balancing:&lt;/strong&gt; An Application Load Balancer can incur hourly and usage-based charges.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Networking:&lt;/strong&gt; Public IPv4 addresses, NAT gateways, and data transfer can add costs. A NAT gateway, in particular, deserves attention in a small environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database availability:&lt;/strong&gt; RDS Multi-AZ improves availability, but generally costs more than a comparable Single-AZ deployment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Observability:&lt;/strong&gt; Log ingestion, retention, metrics, and monitoring services can generate additional charges.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Container storage and secrets:&lt;/strong&gt; ECR storage, KMS requests, and Secrets Manager usage may contribute smaller amounts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These costs are easy to overlook when focusing mainly on EC2 instance prices.&lt;/p&gt;

&lt;p&gt;For this reason, I recommend estimating the entire architecture before deployment rather than calculating only the cost of the worker nodes.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Production-like architecture versus a learning budget
&lt;/h2&gt;

&lt;p&gt;There is an important distinction between learning how production architectures work and operating a production system.&lt;/p&gt;

&lt;p&gt;For LibraryCorner, using components such as RDS Multi-AZ, an Application Load Balancer, and Kubernetes autoscaling helps explore real cloud engineering concerns.&lt;/p&gt;

&lt;p&gt;However, a production-like architecture does not automatically mean that every resource is necessary at all times.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A development environment may not need Multi-AZ database deployment.&lt;/li&gt;
&lt;li&gt;A test cluster may be created only for specific exercises.&lt;/li&gt;
&lt;li&gt;Monitoring retention can be adjusted to match the project's needs.&lt;/li&gt;
&lt;li&gt;Resource requests and limits can help avoid unnecessary capacity.&lt;/li&gt;
&lt;li&gt;Unused load balancers, volumes, addresses, and other resources should be reviewed regularly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These decisions involve trade-offs. Reducing costs should not mean ignoring availability, security, or the learning objectives of the project.&lt;/p&gt;

&lt;p&gt;The right configuration depends on whether the priority is realistic production design, experimentation, or minimizing the cost of a portfolio project.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. How I would approach AWS cost optimization
&lt;/h2&gt;

&lt;p&gt;My approach is to make cost management part of the infrastructure workflow, rather than something to consider only after deployment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, estimate before provisioning.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AWS pricing tools can help compare configurations before resources are created. The estimate should include managed-service fees, compute, storage, networking, and expected usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, monitor actual spending.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AWS Cost Explorer helps identify spending trends and service-level cost drivers. AWS Budgets can provide alerts when spending reaches a defined threshold.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, review idle resources.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Unused environments, unattached volumes, obsolete load balancers, and unnecessary public IPv4 addresses can create avoidable expenses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fourth, right-size the infrastructure.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CPU and memory utilization can help determine whether worker nodes or application resource requests are larger than necessary. Kubernetes autoscaling should be configured with an understanding of its limits and the minimum infrastructure required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Finally, separate development and production requirements.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not every environment needs the same availability, capacity, or retention settings. Documenting these differences makes cost decisions easier to understand and reproduce.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. What I learned from this project
&lt;/h2&gt;

&lt;p&gt;Building LibraryCorner reinforced an important lesson: &lt;strong&gt;cloud architecture is not just about making an application run. It is also about understanding the operational consequences of every design choice.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Managed services simplify operations, but they have costs. High availability improves resilience, but it requires additional resources. Observability improves troubleshooting, but monitoring data also needs to be managed.&lt;/p&gt;

&lt;p&gt;Terraform makes infrastructure reproducible, but reproducibility alone does not make it inexpensive.&lt;/p&gt;

&lt;p&gt;For me, cost awareness belongs alongside security, reliability, performance, and maintainability when designing cloud infrastructure.&lt;/p&gt;

&lt;p&gt;A useful cloud engineer should be able to explain not only why a service was selected, but also what it contributes and what it costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;An indicative budget of &lt;strong&gt;$133 per month&lt;/strong&gt; provides a useful starting point for discussing the cost of a Kubernetes-based AWS architecture such as LibraryCorner.&lt;/p&gt;

&lt;p&gt;The exact amount will depend on the deployment configuration, Region, and usage patterns. The more important lesson is to identify cost drivers early, monitor spending continuously, and choose infrastructure according to the environment's actual requirements.&lt;/p&gt;

&lt;p&gt;For anyone building a cloud portfolio project, cost estimation is a valuable part of the engineering process — not an afterthought.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is your approach to controlling AWS costs in personal projects? Do you prioritize production-like architecture, minimizing spending, or finding a balance between the two?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>kubernetes</category>
      <category>devops</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>Kubernetes HPA on Amazon EKS: Scaling from 2 to 6 Pods Under Load</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 13 Oct 2026 13:53:32 +0000</pubDate>
      <link>https://dev.to/amira_abidi/kubernetes-hpa-on-amazon-eks-scaling-from-2-to-6-pods-under-load-49k0</link>
      <guid>https://dev.to/amira_abidi/kubernetes-hpa-on-amazon-eks-scaling-from-2-to-6-pods-under-load-49k0</guid>
      <description>&lt;p&gt;What happens when your application receives more traffic than its current capacity can handle?&lt;/p&gt;

&lt;p&gt;While building &lt;strong&gt;LibraryCorner&lt;/strong&gt;, my AWS Cloud/DevOps project, I tested Kubernetes Horizontal Pod Autoscaler (HPA) on Amazon EKS to see how the application would respond to increasing CPU utilization.&lt;/p&gt;

&lt;p&gt;The result was more interesting than simply watching pods appear: the test demonstrated automatic scaling, observable performance changes, and a clearly defined capacity limit.&lt;/p&gt;

&lt;p&gt;Here's what happened.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The setup
&lt;/h2&gt;

&lt;p&gt;I configured Kubernetes HPA to scale the application between &lt;strong&gt;2 and 6 pods&lt;/strong&gt;, targeting 55% average CPU utilization.&lt;/p&gt;

&lt;p&gt;The test followed the complete lifecycle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start with two pods at rest.&lt;/li&gt;
&lt;li&gt;Gradually increase the load.&lt;/li&gt;
&lt;li&gt;Observe CPU utilization and application latency.&lt;/li&gt;
&lt;li&gt;Watch HPA scale out.&lt;/li&gt;
&lt;li&gt;Reach the configured capacity limit.&lt;/li&gt;
&lt;li&gt;Stop the load and observe recovery.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective wasn't just to increase the replica count. It was to verify that the system reacted to real metrics and returned to its initial state afterward.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. From 2 pods to 6
&lt;/h2&gt;

&lt;p&gt;At rest, the application ran with two pods and low resource utilization.&lt;/p&gt;

&lt;p&gt;As the load increased, CPU utilization rose significantly. At the peak, it reached &lt;strong&gt;216%&lt;/strong&gt;, and HPA increased the number of replicas to four, then six.&lt;/p&gt;

&lt;p&gt;The scaling process looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;       Increasing traffic
               |
               v
       CPU utilization rises
               |
               v
       Kubernetes HPA reacts
               |
               v
          2 → 4 → 6 pods
               |
               v
       More application capacity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;HPA uses observed metrics to calculate the desired replica count. Kubernetes then schedules and starts additional pods, provided the cluster has enough capacity.&lt;/p&gt;

&lt;p&gt;The important detail is that scaling isn't instantaneous. New pods need time to start and become ready, so application latency can temporarily increase while demand rises.&lt;/p&gt;

&lt;p&gt;That was visible in my test: latency degraded around the traffic peak, then returned to normal as additional pods became available.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The results: 15,000+ requests, zero failures
&lt;/h2&gt;

&lt;p&gt;The load test produced encouraging results:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;15,000+ requests&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero failed requests&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;CPU utilization reached &lt;strong&gt;216%&lt;/strong&gt; at the peak&lt;/li&gt;
&lt;li&gt;Pod count increased from &lt;strong&gt;2 to 6&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Latency remained below the configured alert threshold at the 95th percentile&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The dashboard captured the entire sequence: traffic increased, latency rose, additional pods started, and performance recovered as the system scaled.&lt;/p&gt;

&lt;p&gt;This is why I consider observability essential to autoscaling. The dashboard helped connect the HPA decisions to actual application behavior rather than just showing a changing replica count.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Why stop at six pods?
&lt;/h2&gt;

&lt;p&gt;Six wasn't an arbitrary number.&lt;/p&gt;

&lt;p&gt;At the time of the experiment, the cluster's node networking capacity limited the number of pods that could be scheduled. Increasing the HPA maximum beyond the available capacity could have left new pods pending.&lt;/p&gt;

&lt;p&gt;I therefore configured the maximum at six and added an alert to signal when the workload reached that limit.&lt;/p&gt;

&lt;p&gt;At peak load, the alert fired and a notification was emitted.&lt;/p&gt;

&lt;p&gt;One important distinction: &lt;strong&gt;the alert did not trigger scaling&lt;/strong&gt;. CPU metrics drove HPA. The alert simply indicated that the configured maximum had been reached and that additional capacity might be needed.&lt;/p&gt;

&lt;p&gt;This is a useful operational signal: autoscaling can work exactly as configured and still reach a point where it cannot scale further.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Scaling back down
&lt;/h2&gt;

&lt;p&gt;When the load stopped, the alert resolved automatically, and HPA returned the workload to two pods after the stabilization window.&lt;/p&gt;

&lt;p&gt;That final step matters.&lt;/p&gt;

&lt;p&gt;Autoscaling isn't just about adding replicas under pressure. It also needs to remove unnecessary replicas without reacting too aggressively to short-lived changes.&lt;/p&gt;

&lt;p&gt;The complete lifecycle was:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rest → Load → Scale out → Capacity alert → Recovery → Scale down&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This validated three aspects of the project together: elasticity, observability, and automatic reactions based on metrics.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;This experiment reinforced three lessons:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Autoscaling depends on capacity.&lt;/strong&gt; HPA can request more pods, but the cluster must have enough networking and compute resources to run them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Monitoring makes behavior explainable.&lt;/strong&gt; CPU, replica count, latency and alerts helped me understand what happened throughout the test.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Scaling needs end-to-end validation.&lt;/strong&gt; Reaching six pods is not enough. You also need to check application errors, latency, recovery, and what happens when the maximum is reached.&lt;/p&gt;

&lt;p&gt;Coming from QA and validation, this last point feels natural to me: I want to verify the complete behavior, not just whether a Kubernetes resource has the expected status.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;My LibraryCorner load test demonstrated that HPA could scale the application from two to six pods, handle more than 15,000 requests without failures, and return to two pods after the load ended.&lt;/p&gt;

&lt;p&gt;It also exposed an important constraint: application autoscaling cannot compensate indefinitely for limited cluster capacity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Autoscaling isn't simply about adding pods. It's about responding to demand, observing the result, and knowing when you've reached your limits.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>kubernetes</category>
      <category>performance</category>
    </item>
    <item>
      <title>Disaster Recovery: Restoring PostgreSQL on Amazon RDS</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 06 Oct 2026 14:53:50 +0000</pubDate>
      <link>https://dev.to/amira_abidi/disaster-recovery-restoring-postgresql-on-amazon-rds-33pi</link>
      <guid>https://dev.to/amira_abidi/disaster-recovery-restoring-postgresql-on-amazon-rds-33pi</guid>
      <description>&lt;p&gt;A backup is easy to create.&lt;/p&gt;

&lt;p&gt;The harder question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Can you actually recover your application when you need to?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;While building &lt;strong&gt;LibraryCorner&lt;/strong&gt;, my AWS project running on Amazon EKS with PostgreSQL on Amazon RDS, I wanted to look beyond simply deploying a database and enabling backups.&lt;/p&gt;

&lt;p&gt;I wanted to understand what happens when things go wrong.&lt;/p&gt;

&lt;p&gt;Because having a backup is not the same as having a recovery strategy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Backup is only the starting point
&lt;/h2&gt;

&lt;p&gt;For a database-backed application, disaster recovery is more than storing a copy of your data.&lt;/p&gt;

&lt;p&gt;The real recovery flow looks more like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Failure
   ↓
Choose recovery point
   ↓
Restore PostgreSQL
   ↓
Reconnect application
   ↓
Validate data
   ↓
Validate application
   ↓
Return to service
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every step matters.&lt;/p&gt;

&lt;p&gt;A restored database that the application cannot reach is not a successful recovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  My LibraryCorner architecture
&lt;/h2&gt;

&lt;p&gt;In LibraryCorner, the application runs on &lt;strong&gt;Amazon EKS&lt;/strong&gt;, while PostgreSQL is hosted on &lt;strong&gt;Amazon RDS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;At a high level:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                  Internet
                     │
                     ▼
                  ALB
                     │
                     ▼
                Amazon EKS
                     │
                     ▼
                Amazon RDS
                 PostgreSQL
                     │
                     ▼
              Backup / Snapshot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The production database uses a multi-AZ configuration to improve availability.&lt;/p&gt;

&lt;p&gt;But this led me to an important distinction:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;High availability is not the same as disaster recovery.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Multi-AZ helps protect against certain infrastructure failures.&lt;/p&gt;

&lt;p&gt;Backups and snapshots provide another layer of protection when recovery is required.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would recovery look like?
&lt;/h2&gt;

&lt;p&gt;Imagine that the database needs to be replaced.&lt;/p&gt;

&lt;p&gt;The first question isn't simply:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Can I restore it?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;“Which recovery point should I restore?”&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is where two concepts become important.&lt;/p&gt;

&lt;h3&gt;
  
  
  RPO — Recovery Point Objective
&lt;/h3&gt;

&lt;p&gt;How much data can I afford to lose?&lt;/p&gt;

&lt;p&gt;A system that can tolerate an hour of data loss has very different requirements from one that needs almost zero data loss.&lt;/p&gt;

&lt;h3&gt;
  
  
  RTO — Recovery Time Objective
&lt;/h3&gt;

&lt;p&gt;How long can the application remain unavailable?&lt;/p&gt;

&lt;p&gt;A recovery strategy that takes several hours may be perfectly acceptable for one application and completely unacceptable for another.&lt;/p&gt;

&lt;p&gt;RPO and RTO therefore aren't just theoretical concepts.&lt;/p&gt;

&lt;p&gt;They influence the architecture you choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Restoring the database isn't the end
&lt;/h2&gt;

&lt;p&gt;Suppose the PostgreSQL instance has been restored successfully.&lt;/p&gt;

&lt;p&gt;The RDS console says:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Available ✓&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Is the recovery finished?&lt;/p&gt;

&lt;p&gt;Not yet.&lt;/p&gt;

&lt;p&gt;The application still needs to communicate with the restored database.&lt;/p&gt;

&lt;p&gt;The recovery process is therefore closer to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Backup / Snapshot
        ↓
Restore RDS
        ↓
Database available
        ↓
Application reconnects
        ↓
Functional validation
        ↓
Recovery complete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is where my QA background strongly influences how I approach recovery.&lt;/p&gt;

&lt;p&gt;I don't want to validate only the infrastructure.&lt;/p&gt;

&lt;p&gt;I want to validate the &lt;strong&gt;complete system&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would I validate?
&lt;/h2&gt;

&lt;p&gt;First, the database:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can I connect?&lt;/li&gt;
&lt;li&gt;Is the expected schema present?&lt;/li&gt;
&lt;li&gt;Is the expected data available?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then the application:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can it connect to PostgreSQL?&lt;/li&gt;
&lt;li&gt;Can it retrieve existing data?&lt;/li&gt;
&lt;li&gt;Can it create new data?&lt;/li&gt;
&lt;li&gt;Do the main API operations work?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And finally, the infrastructure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is network connectivity working?&lt;/li&gt;
&lt;li&gt;Are access controls still correct?&lt;/li&gt;
&lt;li&gt;Is monitoring operational?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is essentially the same mindset I used in QA:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't just check that the component is running. Check that the system actually works.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The lesson I took from this project
&lt;/h2&gt;

&lt;p&gt;Before working on Cloud and DevOps, I thought of backups mainly as a safety mechanism.&lt;/p&gt;

&lt;p&gt;Now I see them as one part of a larger process:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Backup → Restore → Reconnect → Validate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A resilient architecture needs both availability and recoverability.&lt;/p&gt;

&lt;p&gt;And recovery should not be something you discover for the first time during an incident.&lt;/p&gt;

&lt;p&gt;Ideally, the restore process should be tested.&lt;/p&gt;

&lt;p&gt;Because a backup you have never successfully restored is ultimately an assumption.&lt;/p&gt;

&lt;p&gt;My QA background taught me to question those assumptions.&lt;/p&gt;

&lt;p&gt;Cloud is teaching me how to turn them into repeatable processes.&lt;/p&gt;

&lt;p&gt;And that's probably the most important lesson from this project:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A backup gives you a recovery point. A tested restore gives you confidence.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>aws</category>
      <category>rds</category>
      <category>postgres</category>
      <category>devops</category>
    </item>
    <item>
      <title>What QA Taught Me About DevOps</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 29 Sep 2026 09:02:03 +0000</pubDate>
      <link>https://dev.to/amira_abidi/what-qa-taught-me-about-devops-59c</link>
      <guid>https://dev.to/amira_abidi/what-qa-taught-me-about-devops-59c</guid>
      <description>&lt;p&gt;When I started moving from QA and validation toward Cloud and DevOps, I initially thought I had to leave my QA background behind.&lt;/p&gt;

&lt;p&gt;I was wrong.&lt;/p&gt;

&lt;p&gt;The more I worked with AWS, Terraform, Kubernetes and CI/CD, the more I realized that many habits I developed as a QA engineer were still useful — sometimes even more than I expected.&lt;/p&gt;

&lt;p&gt;Here are the lessons from QA that I now carry into my Cloud and DevOps projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Think about failure before success
&lt;/h2&gt;

&lt;p&gt;QA teaches you not to ask only:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Does it work?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;You also ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What happens if the service is unavailable?&lt;/li&gt;
&lt;li&gt;What happens if a dependency fails?&lt;/li&gt;
&lt;li&gt;What happens with invalid input?&lt;/li&gt;
&lt;li&gt;What happens under load?&lt;/li&gt;
&lt;li&gt;What happens after a restart?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This mindset became very useful when working with Kubernetes and AWS.&lt;/p&gt;

&lt;p&gt;For example, when building my LibraryCorner project on Amazon EKS, I didn't want to validate only that the application was running.&lt;/p&gt;

&lt;p&gt;I also looked at scaling, health checks, database availability, monitoring and recovery.&lt;/p&gt;

&lt;p&gt;The question changed from:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Can I deploy it?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“How does it behave when something goes wrong?”&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Automation is more than saving time
&lt;/h2&gt;

&lt;p&gt;Automation was already part of my QA work.&lt;/p&gt;

&lt;p&gt;Tests, validation processes and repetitive checks are much more reliable when they can be executed automatically.&lt;/p&gt;

&lt;p&gt;Moving into DevOps made this principle even stronger.&lt;/p&gt;

&lt;p&gt;Infrastructure can be automated with Terraform.&lt;/p&gt;

&lt;p&gt;Application delivery can be automated with CI/CD.&lt;/p&gt;

&lt;p&gt;Kubernetes can automatically maintain the desired state.&lt;/p&gt;

&lt;p&gt;Monitoring can continuously check what is happening.&lt;/p&gt;

&lt;p&gt;The goal isn't simply to eliminate manual work.&lt;/p&gt;

&lt;p&gt;It is to make processes &lt;strong&gt;repeatable, predictable and easier to trust&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Reproducibility matters
&lt;/h2&gt;

&lt;p&gt;One of the most frustrating situations in testing is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“It worked on my machine.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A good test environment should be reproducible.&lt;/p&gt;

&lt;p&gt;The same principle applies to infrastructure.&lt;/p&gt;

&lt;p&gt;With Terraform, I can describe infrastructure as code instead of manually creating resources in the AWS console.&lt;/p&gt;

&lt;p&gt;With Kubernetes manifests and Kustomize, I can define application configurations consistently across environments.&lt;/p&gt;

&lt;p&gt;This changed the way I think about infrastructure.&lt;/p&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“How did I configure this?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I can ask:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Can I reproduce this configuration?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's a much better question.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Observability is part of validation
&lt;/h2&gt;

&lt;p&gt;QA engineers spend a lot of time looking for evidence.&lt;/p&gt;

&lt;p&gt;Logs, test results, error messages and system behavior help answer:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“What actually happened?”&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Observability follows the same principle.&lt;/p&gt;

&lt;p&gt;While working on LibraryCorner, I implemented Prometheus and Grafana monitoring for my EKS environment.&lt;/p&gt;

&lt;p&gt;Metrics aren't just dashboards that look nice.&lt;/p&gt;

&lt;p&gt;They provide evidence about what the system is doing.&lt;/p&gt;

&lt;p&gt;CPU usage, pod count, resource consumption and application behavior can help explain why something happened.&lt;/p&gt;

&lt;p&gt;For me, observability is therefore closely related to validation:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;you cannot validate what you cannot see.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Testing doesn't disappear in DevOps
&lt;/h2&gt;

&lt;p&gt;Before moving into Cloud, I sometimes associated DevOps with infrastructure, pipelines and deployments.&lt;/p&gt;

&lt;p&gt;Today, I see it differently.&lt;/p&gt;

&lt;p&gt;Testing is still there.&lt;/p&gt;

&lt;p&gt;It simply becomes part of a larger feedback loop.&lt;/p&gt;

&lt;p&gt;Code changes → tests → build → deployment → monitoring → feedback.&lt;/p&gt;

&lt;p&gt;The objective is to detect problems earlier and shorten the time between a change and reliable feedback.&lt;/p&gt;

&lt;p&gt;That is one of the reasons my QA background fits naturally into this environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. My mindset changed more than my tools
&lt;/h2&gt;

&lt;p&gt;The biggest lesson from this transition is that moving from QA to DevOps isn't only about learning new technologies.&lt;/p&gt;

&lt;p&gt;Yes, I had to learn AWS, Terraform, Kubernetes, Linux, networking and CI/CD.&lt;/p&gt;

&lt;p&gt;But the most valuable thing I brought with me wasn't a specific tool.&lt;/p&gt;

&lt;p&gt;It was a way of thinking:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Challenge assumptions.&lt;/li&gt;
&lt;li&gt;Look for failure scenarios.&lt;/li&gt;
&lt;li&gt;Automate repetitive work.&lt;/li&gt;
&lt;li&gt;Make environments reproducible.&lt;/li&gt;
&lt;li&gt;Collect evidence.&lt;/li&gt;
&lt;li&gt;Monitor what happens after deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These principles remain useful regardless of whether the system is a test environment, a Kubernetes cluster or an AWS architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  From QA to Cloud
&lt;/h2&gt;

&lt;p&gt;My transition from QA/validation to Cloud and DevOps didn't mean starting from zero.&lt;/p&gt;

&lt;p&gt;It meant building on top of what I already knew.&lt;/p&gt;

&lt;p&gt;QA taught me to question systems.&lt;/p&gt;

&lt;p&gt;Cloud and DevOps are teaching me how to build, automate and operate them.&lt;/p&gt;

&lt;p&gt;And I'm discovering that these two perspectives complement each other more than I initially expected.&lt;/p&gt;

&lt;p&gt;That's probably the most important lesson I've learned so far in this transition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your previous experience doesn't necessarily disappear when you change careers. Sometimes, it becomes your advantage.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>kubernetes</category>
      <category>devops</category>
      <category>testing</category>
    </item>
    <item>
      <title>AWS EKS Networking: Understanding What Happens Behind the Cluster</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 22 Sep 2026 07:53:40 +0000</pubDate>
      <link>https://dev.to/amira_abidi/aws-eks-networking-understanding-what-happens-behind-the-cluster-3ii9</link>
      <guid>https://dev.to/amira_abidi/aws-eks-networking-understanding-what-happens-behind-the-cluster-3ii9</guid>
      <description>&lt;p&gt;When I started working with Amazon EKS, I initially focused on the Kubernetes layer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pods&lt;/li&gt;
&lt;li&gt;Deployments&lt;/li&gt;
&lt;li&gt;Services&lt;/li&gt;
&lt;li&gt;Ingress&lt;/li&gt;
&lt;li&gt;HPA&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But running Kubernetes on AWS quickly raises another question:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What actually happens at the network level?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;How does a pod communicate with another pod?&lt;br&gt;
How does Internet traffic reach the application?&lt;br&gt;
How does a pod connect to Amazon RDS?&lt;/p&gt;

&lt;p&gt;While building my &lt;strong&gt;LibraryCorner&lt;/strong&gt; platform, I spent time understanding how Kubernetes networking interacts with AWS networking.&lt;/p&gt;

&lt;p&gt;Here are the main concepts I found important.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. EKS runs inside an AWS VPC
&lt;/h2&gt;

&lt;p&gt;The first thing to understand is that an EKS cluster is connected to an AWS VPC.&lt;/p&gt;

&lt;p&gt;The VPC provides the underlying network for the cluster and its AWS resources.&lt;/p&gt;

&lt;p&gt;A simplified architecture looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                    Internet
                       │
                       ▼
               AWS Load Balancer
                       │
                       ▼
                Kubernetes Service
                       │
                       ▼
                      Pods
                       │
              ┌────────┴────────┐
              ▼                 ▼
             EKS               RDS
           workloads         PostgreSQL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means that understanding EKS also requires understanding basic AWS networking.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Public and private subnets
&lt;/h2&gt;

&lt;p&gt;A common architecture separates public-facing resources from private workloads.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Internet
   │
   ▼
Public subnet
   │
   ▼
Load Balancer
   │
   ▼
Private subnet
   │
   ▼
EKS workloads
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The application workloads don't need to be directly exposed to the Internet.&lt;/p&gt;

&lt;p&gt;This separation reduces the attack surface and makes the architecture easier to control.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What does the NAT Gateway do?
&lt;/h2&gt;

&lt;p&gt;Private workloads may still need outbound Internet access.&lt;/p&gt;

&lt;p&gt;For example, a pod may need to reach an external API or download something.&lt;/p&gt;

&lt;p&gt;A NAT Gateway provides this outbound path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Private subnet
      │
      ▼
NAT Gateway
      │
      ▼
Internet Gateway
      │
      ▼
Internet
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important distinction is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NAT Gateway enables outbound connectivity. It does not make the private workload directly reachable from the Internet.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How do Pods get network connectivity?
&lt;/h2&gt;

&lt;p&gt;With the Amazon VPC CNI, Kubernetes pods can receive IP addresses from the VPC network.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;VPC
 │
 ├── EKS Node
 │     ├── Pod → IP
 │     ├── Pod → IP
 │     └── Pod → IP
 │
 └── RDS → IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This creates a strong relationship between Kubernetes and the AWS network.&lt;/p&gt;

&lt;p&gt;It also means that &lt;strong&gt;IP address availability matters when scaling an EKS cluster&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;More pods can mean more demand for available IP addresses and subnet capacity.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. How does Internet traffic reach a Pod?
&lt;/h2&gt;

&lt;p&gt;Pods are ephemeral, so we don't want clients connecting directly to individual pod IPs.&lt;/p&gt;

&lt;p&gt;Instead, Kubernetes and AWS provide abstractions for routing traffic.&lt;/p&gt;

&lt;p&gt;A simplified request path is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User
 │
 ▼
AWS Load Balancer
 │
 ▼
Kubernetes Service
 │
 ▼
Pod
 │
 ▼
Application
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;strong&gt;Load Balancer&lt;/strong&gt; provides an external entry point, while the &lt;strong&gt;Kubernetes Service&lt;/strong&gt; provides a stable way to reach a group of pods.&lt;/p&gt;

&lt;p&gt;If a pod is recreated, the Service can continue routing traffic to the available pods.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. EKS and RDS
&lt;/h2&gt;

&lt;p&gt;LibraryCorner uses Amazon RDS for PostgreSQL.&lt;/p&gt;

&lt;p&gt;The application communicates with the database through the VPC:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EKS Pod
   │
   │ PostgreSQL
   ▼
Amazon RDS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The database does not need to be publicly accessible.&lt;/p&gt;

&lt;p&gt;Security rules can restrict database access so that only the required application traffic is allowed.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Allowed:
EKS → RDS : 5432

Not allowed:
Internet → RDS : 5432
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a simple but important security principle:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only expose what needs to be exposed.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Multi-AZ and networking
&lt;/h2&gt;

&lt;p&gt;For the production-oriented architecture of LibraryCorner, I used multiple Availability Zones.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              AWS Region
                  │
        ┌─────────┴─────────┐
        │                   │
       AZ-A                AZ-B
        │                   │
    EKS nodes           EKS nodes
        │                   │
        └─────────┬─────────┘
                  │
                 RDS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Multi-AZ architecture requires thinking about subnet placement, routing, IP capacity and resource availability across zones.&lt;/p&gt;

&lt;p&gt;Networking is therefore part of the architecture, not just a configuration detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. The lesson I took from this
&lt;/h2&gt;

&lt;p&gt;Before working on EKS networking, I tended to think about Kubernetes mainly in terms of:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Pods
Services
Deployments
Ingress
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now I see a larger picture:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AWS VPC
   │
   ├── Subnets
   ├── Routes
   ├── Security Groups
   ├── NAT
   │
   └── EKS
        │
        ├── Nodes
        ├── Pods
        └── Services
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Kubernetes networking on AWS cannot really be understood independently from AWS networking.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That was one of the most useful lessons from building my EKS platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Building an EKS platform is not only about deploying containers.&lt;/p&gt;

&lt;p&gt;You also need to understand the network underneath them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;VPCs&lt;/li&gt;
&lt;li&gt;Subnets&lt;/li&gt;
&lt;li&gt;Route tables&lt;/li&gt;
&lt;li&gt;NAT Gateways&lt;/li&gt;
&lt;li&gt;Security Groups&lt;/li&gt;
&lt;li&gt;Load Balancers&lt;/li&gt;
&lt;li&gt;Kubernetes Services&lt;/li&gt;
&lt;li&gt;Pod networking&lt;/li&gt;
&lt;li&gt;Availability Zones&lt;/li&gt;
&lt;li&gt;RDS connectivity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For me, understanding these layers was another step from &lt;strong&gt;"I can deploy an application"&lt;/strong&gt; toward &lt;strong&gt;"I understand the infrastructure that makes the application work."&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This article is part of my LibraryCorner Cloud/DevOps project, where I progressively build and document a containerized application platform on AWS.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>kubernetes</category>
      <category>devops</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Kubernetes Configuration Management with Kustomize: Dev vs Prod</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 15 Sep 2026 14:48:06 +0000</pubDate>
      <link>https://dev.to/amira_abidi/kubernetes-configuration-management-with-kustomize-dev-vs-prod-2bk6</link>
      <guid>https://dev.to/amira_abidi/kubernetes-configuration-management-with-kustomize-dev-vs-prod-2bk6</guid>
      <description>&lt;p&gt;Managing multiple Kubernetes environments looks simple at first.&lt;/p&gt;

&lt;p&gt;You create a few YAML manifests, deploy them to development, then adapt them for production.&lt;/p&gt;

&lt;p&gt;Then reality happens.&lt;/p&gt;

&lt;p&gt;Development and production need different replica counts, resource limits, image tags, hostnames, configuration values, and sometimes completely different infrastructure settings.&lt;/p&gt;

&lt;p&gt;Copying the manifests for each environment may work for a small project, but it quickly becomes difficult to maintain.&lt;/p&gt;

&lt;p&gt;This is where &lt;strong&gt;Kustomize&lt;/strong&gt; becomes useful.&lt;/p&gt;

&lt;p&gt;In my LibraryCorner project, I used Kustomize to manage Kubernetes configurations across separate development and production environments while keeping a shared configuration base.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Problem: Kubernetes Manifests Across Environments
&lt;/h2&gt;

&lt;p&gt;Imagine that we have a simple application deployment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;apps/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deployment&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;api&lt;/span&gt;
          &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api:latest&lt;/span&gt;
          &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
            &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;containerPort&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This might be perfectly fine for development.&lt;/p&gt;

&lt;p&gt;But production may require:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;more replicas&lt;/li&gt;
&lt;li&gt;different resource requests and limits&lt;/li&gt;
&lt;li&gt;a production image tag&lt;/li&gt;
&lt;li&gt;different configuration&lt;/li&gt;
&lt;li&gt;different ingress/hostname settings&lt;/li&gt;
&lt;li&gt;stricter security settings&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One tempting approach is to create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;deployment-dev.yaml
deployment-prod.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and maintain both independently.&lt;/p&gt;

&lt;p&gt;The problem is duplication.&lt;/p&gt;

&lt;p&gt;If the base Deployment changes, we now have to remember to update multiple copies.&lt;/p&gt;

&lt;p&gt;That's where Kustomize provides a cleaner approach.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. What Is Kustomize?
&lt;/h2&gt;

&lt;p&gt;Kustomize is a Kubernetes-native configuration management tool.&lt;/p&gt;

&lt;p&gt;Instead of using templates, Kustomize lets us define a common &lt;strong&gt;base configuration&lt;/strong&gt; and then apply environment-specific customizations through &lt;strong&gt;overlays&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The general structure looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;k8s/
├── base/
│   ├── deployment.yaml
│   ├── service.yaml
│   └── kustomization.yaml
│
└── overlays/
    ├── dev/
    │   └── kustomization.yaml
    │
    └── prod/
        └── kustomization.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important concept is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                 Base
                  │
          ┌───────┴───────┐
          │               │
         Dev             Prod
       Overlay           Overlay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The base contains what is common.&lt;/p&gt;

&lt;p&gt;The overlays contain what changes.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Building the Base
&lt;/h2&gt;

&lt;p&gt;Let's start with the common configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;base/deployment.yaml&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;apps/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deployment&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2&lt;/span&gt;
  &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;matchLabels&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;api&lt;/span&gt;
          &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
          &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
            &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;containerPort&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;code&gt;base/service.yaml&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Service&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;selector&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;app&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
  &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;80&lt;/span&gt;
      &lt;span class="na"&gt;targetPort&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8000&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we define the resources in &lt;code&gt;base/kustomization.yaml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;kustomize.config.k8s.io/v1beta1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Kustomization&lt;/span&gt;

&lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;deployment.yaml&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;service.yaml&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At this point, the base describes the application without knowing whether it will run in development or production.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Creating the Development Overlay
&lt;/h2&gt;

&lt;p&gt;Now let's create:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;overlays/dev/kustomization.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We reference the base:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;kustomize.config.k8s.io/v1beta1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Kustomization&lt;/span&gt;

&lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;../../base&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can then apply development-specific changes.&lt;/p&gt;

&lt;p&gt;For example, we might want only one replica:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;count&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can also modify the container image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;images&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;newName&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;newTag&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;dev&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The resulting development configuration is generated from the base plus these customizations.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Creating the Production Overlay
&lt;/h2&gt;

&lt;p&gt;The production overlay follows the same principle.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;overlays/prod/kustomization.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;kustomize.config.k8s.io/v1beta1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Kustomization&lt;/span&gt;

&lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;../../base&lt;/span&gt;

&lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;count&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;

&lt;span class="na"&gt;images&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;newName&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
    &lt;span class="na"&gt;newTag&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;prod&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Base
 │
 ├── Dev → 1 replica + dev image
 │
 └── Prod → 3 replicas + prod image
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The common Kubernetes configuration remains in one place.&lt;/p&gt;




&lt;h2&gt;
  
  
  6. Patches for More Specific Changes
&lt;/h2&gt;

&lt;p&gt;Sometimes changing replicas or images isn't enough.&lt;/p&gt;

&lt;p&gt;For example, production may require different resource limits.&lt;/p&gt;

&lt;p&gt;We can use a patch.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;overlays/prod/resources-patch.yaml&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;apps/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Deployment&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-api&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;template&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;api&lt;/span&gt;
          &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;250m"&lt;/span&gt;
              &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;256Mi"&lt;/span&gt;
            &lt;span class="na"&gt;limits&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;cpu&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;500m"&lt;/span&gt;
              &lt;span class="na"&gt;memory&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;512Mi"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then reference the patch from the production overlay:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;patches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resources-patch.yaml&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This keeps the production-specific configuration isolated from the shared base.&lt;/p&gt;




&lt;h2&gt;
  
  
  7. Environment-Specific Configuration
&lt;/h2&gt;

&lt;p&gt;Another common requirement is changing configuration values between environments.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ENVIRONMENT=dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;versus:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ENVIRONMENT=prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kustomize can generate ConfigMaps from literals or files.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;configMapGenerator&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-config&lt;/span&gt;
    &lt;span class="na"&gt;literals&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;ENVIRONMENT=dev&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The production overlay can define:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;configMapGenerator&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;librarycorner-config&lt;/span&gt;
    &lt;span class="na"&gt;literals&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;ENVIRONMENT=prod&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows the same application manifest to be reused while keeping environment-specific configuration separate.&lt;/p&gt;

&lt;p&gt;For sensitive information, however, I would not put credentials directly into Git-managed manifests. Secrets should be handled through an appropriate secret-management solution.&lt;/p&gt;




&lt;h2&gt;
  
  
  8. Previewing the Result
&lt;/h2&gt;

&lt;p&gt;One of my favorite aspects of Kustomize is that we can render the final Kubernetes manifests before applying them.&lt;/p&gt;

&lt;p&gt;For development:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl kustomize overlays/dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For production:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl kustomize overlays/prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes it possible to inspect exactly what Kubernetes will receive.&lt;/p&gt;

&lt;p&gt;We can also apply the configuration directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl apply &lt;span class="nt"&gt;-k&lt;/span&gt; overlays/dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl apply &lt;span class="nt"&gt;-k&lt;/span&gt; overlays/prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-k&lt;/code&gt; option tells &lt;code&gt;kubectl&lt;/code&gt; to use Kustomize.&lt;/p&gt;




&lt;h2&gt;
  
  
  9. Kustomize in a CI/CD Pipeline
&lt;/h2&gt;

&lt;p&gt;Kustomize becomes particularly useful when combined with CI/CD.&lt;/p&gt;

&lt;p&gt;For example, a simplified deployment pipeline can look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Git push
   │
   ▼
Build application image
   │
   ▼
Run tests
   │
   ▼
Push image
   │
   ▼
Update Kubernetes configuration
   │
   ▼
Kustomize overlay
   │
   ▼
Deploy to EKS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, a pipeline could deploy development using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl apply &lt;span class="nt"&gt;-k&lt;/span&gt; k8s/overlays/dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;while production uses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl apply &lt;span class="nt"&gt;-k&lt;/span&gt; k8s/overlays/prod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes the Kubernetes configuration part of the application delivery process instead of maintaining deployment settings manually.&lt;/p&gt;




&lt;h2&gt;
  
  
  10. How I Used It in LibraryCorner
&lt;/h2&gt;

&lt;p&gt;In LibraryCorner, I used separate Kubernetes configurations for development and production.&lt;/p&gt;

&lt;p&gt;The goal was not to create two independent Kubernetes applications.&lt;/p&gt;

&lt;p&gt;Instead, I wanted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One common application configuration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;plus&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Environment-specific differences.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The structure was conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;k8s/
├── base/
│   ├── deployment
│   ├── service
│   ├── config
│   └── kustomization.yaml
│
└── overlays/
    ├── dev/
    │   └── kustomization.yaml
    │
    └── prod/
        ├── kustomization.yaml
        └── patches/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This approach helped keep the environments consistent while still allowing production to have different scaling and resource requirements.&lt;/p&gt;

&lt;p&gt;It also fits naturally with the infrastructure architecture of the project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AWS
│
├── Development
│   └── EKS
│       └── Kustomize → Dev configuration
│
└── Production
    └── EKS
        └── Kustomize → Prod configuration
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  11. Kustomize vs Helm
&lt;/h2&gt;

&lt;p&gt;Kustomize and Helm are often compared because both can be used to manage Kubernetes configurations.&lt;/p&gt;

&lt;p&gt;The difference is largely in their approach.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kustomize&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;works directly with Kubernetes YAML&lt;/li&gt;
&lt;li&gt;uses bases and overlays&lt;/li&gt;
&lt;li&gt;doesn't require a templating language&lt;/li&gt;
&lt;li&gt;is integrated into &lt;code&gt;kubectl&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Helm&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;uses charts and templates&lt;/li&gt;
&lt;li&gt;provides packaging and versioning&lt;/li&gt;
&lt;li&gt;has a larger ecosystem for distributing applications&lt;/li&gt;
&lt;li&gt;is particularly useful when deploying reusable third-party applications&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For my LibraryCorner project, Kustomize was a good fit because I wanted to maintain a relatively small number of environment-specific configurations without introducing a templating layer.&lt;/p&gt;




&lt;h2&gt;
  
  
  12. What I Learned
&lt;/h2&gt;

&lt;p&gt;The biggest lesson for me was that environment separation is not only an infrastructure problem.&lt;/p&gt;

&lt;p&gt;It also exists at the Kubernetes configuration level.&lt;/p&gt;

&lt;p&gt;A clean structure such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Base + Dev Overlay + Prod Overlay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;helps avoid configuration drift and duplicated manifests.&lt;/p&gt;

&lt;p&gt;It also makes the deployment process easier to reason about:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Same application
      +
Different environment configuration
      =
Predictable deployments
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kustomize is therefore a relatively small tool, but it solves a very practical problem when Kubernetes configurations start becoming more complex.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Kubernetes manifests are easy to write.&lt;/p&gt;

&lt;p&gt;Keeping them maintainable across multiple environments is the harder part.&lt;/p&gt;

&lt;p&gt;Kustomize provides a simple Kubernetes-native approach:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Base → Overlays → Environment-specific configuration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For projects running across development and production environments, this can significantly reduce duplication while keeping the differences explicit.&lt;/p&gt;

&lt;p&gt;In my case, it became an important part of the LibraryCorner deployment architecture on AWS EKS.&lt;/p&gt;

&lt;p&gt;And the next question naturally follows:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do we make sure these Kubernetes workloads are actually healthy and observable once they're running?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's where monitoring and observability come in — and that's a topic I've already explored with Prometheus and Grafana in LibraryCorner.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>devops</category>
      <category>cicd</category>
      <category>aws</category>
    </item>
    <item>
      <title>Monitoring AWS EKS with Prometheus and Grafana</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Tue, 08 Sep 2026 08:35:31 +0000</pubDate>
      <link>https://dev.to/amira_abidi/monitoring-aws-eks-with-prometheus-and-grafana-pb9</link>
      <guid>https://dev.to/amira_abidi/monitoring-aws-eks-with-prometheus-and-grafana-pb9</guid>
      <description>&lt;p&gt;In my previous articles, I shared how I moved my application from Docker to AWS EKS and how I used Terraform to build the infrastructure.&lt;/p&gt;

&lt;p&gt;Once everything was deployed and running, I had another question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;How do I know if my application and Kubernetes cluster are actually healthy?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Seeing pods in a &lt;code&gt;Running&lt;/code&gt; state is useful, but it doesn't tell the whole story.&lt;/p&gt;

&lt;p&gt;That's where observability came in.&lt;/p&gt;

&lt;p&gt;For my project, I implemented a monitoring stack based on &lt;strong&gt;Prometheus, Grafana, and Alertmanager&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here's what I built and, more importantly, what I learned from it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Monitoring Stack
&lt;/h2&gt;

&lt;p&gt;I deployed &lt;strong&gt;kube-prometheus-stack&lt;/strong&gt; on my EKS cluster using Helm.&lt;/p&gt;

&lt;p&gt;It provides several components out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prometheus&lt;/strong&gt; to collect and store metrics&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grafana&lt;/strong&gt; to visualize them&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alertmanager&lt;/strong&gt; to manage alerts&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;node-exporter&lt;/strong&gt; for node-level metrics&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;kube-state-metrics&lt;/strong&gt; for Kubernetes object metrics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of installing and configuring every component separately, this gave me a solid monitoring foundation for Kubernetes.&lt;/p&gt;

&lt;p&gt;The simplified flow looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;EKS Cluster
    │
    ├── Application Pods
    ├── Kubernetes Metrics
    └── Worker Nodes
           │
           ▼
      Prometheus
           │
      ┌────┴────┐
      ▼         ▼
   Grafana   Alertmanager
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Prometheus collects the metrics, Grafana turns them into dashboards, and Alertmanager handles situations that require attention.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Am I Actually Monitoring?
&lt;/h2&gt;

&lt;p&gt;Installing Prometheus is easy.&lt;/p&gt;

&lt;p&gt;Knowing &lt;strong&gt;what is worth monitoring&lt;/strong&gt; is more interesting.&lt;/p&gt;

&lt;p&gt;For my EKS environment, I wanted visibility at several levels.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cluster and nodes
&lt;/h3&gt;

&lt;p&gt;I can monitor things such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CPU usage&lt;/li&gt;
&lt;li&gt;Memory consumption&lt;/li&gt;
&lt;li&gt;Node availability&lt;/li&gt;
&lt;li&gt;Kubernetes resource usage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This helps answer questions like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Is the cluster running normally, or are resources becoming saturated?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Kubernetes workloads
&lt;/h3&gt;

&lt;p&gt;At the Kubernetes level, I can observe:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Number of running pods&lt;/li&gt;
&lt;li&gt;Pod restarts&lt;/li&gt;
&lt;li&gt;Deployment status&lt;/li&gt;
&lt;li&gt;Resource consumption per pod&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is particularly useful when troubleshooting.&lt;/p&gt;

&lt;p&gt;A service may still be reachable while one of its pods is constantly restarting in the background.&lt;/p&gt;

&lt;p&gt;Without monitoring, that kind of behavior can easily go unnoticed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grafana: Turning Metrics into Something Useful
&lt;/h2&gt;

&lt;p&gt;Prometheus collecting thousands of metrics isn't very useful if I can't easily interpret them.&lt;/p&gt;

&lt;p&gt;That's where &lt;strong&gt;Grafana&lt;/strong&gt; comes in.&lt;/p&gt;

&lt;p&gt;I use Grafana dashboards to get a visual overview of the cluster and quickly identify unusual behavior.&lt;/p&gt;

&lt;p&gt;For example, instead of repeatedly running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl top pods
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I can observe CPU and memory usage over time.&lt;/p&gt;

&lt;p&gt;That &lt;strong&gt;“over time”&lt;/strong&gt; part is important.&lt;/p&gt;

&lt;p&gt;A command tells me what is happening now.&lt;/p&gt;

&lt;p&gt;Monitoring helps me understand &lt;strong&gt;what happened before the problem appeared&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Accessing Grafana
&lt;/h2&gt;

&lt;p&gt;I also wanted Grafana to be accessible without relying on local port forwarding.&lt;/p&gt;

&lt;p&gt;I exposed it through an &lt;strong&gt;AWS Application Load Balancer&lt;/strong&gt;, using a dedicated subdomain and its own &lt;strong&gt;ACM certificate for HTTPS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Browser
   │
   ▼
Grafana subdomain
   │
   ▼
AWS ALB + HTTPS
   │
   ▼
Grafana on EKS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This made the monitoring interface accessible in a way that was closer to how I would expose an internal platform service in a real environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Monitoring vs Alerting
&lt;/h2&gt;

&lt;p&gt;Dashboards are useful when someone is looking at them.&lt;/p&gt;

&lt;p&gt;But nobody should have to watch Grafana all day.&lt;/p&gt;

&lt;p&gt;That's why the stack also includes &lt;strong&gt;Alertmanager&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Prometheus can evaluate alerting rules based on collected metrics. When a condition is triggered, Alertmanager is responsible for processing the alert and routing the notification.&lt;/p&gt;

&lt;p&gt;This introduced an important distinction for me:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Monitoring tells me what's happening.&lt;br&gt;
Alerting tells me when I need to care.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A good monitoring system shouldn't generate noise for every small variation. The challenge is deciding which conditions actually require action.&lt;/p&gt;

&lt;h2&gt;
  
  
  Observability Changed How I Look at Kubernetes
&lt;/h2&gt;

&lt;p&gt;One of the biggest lessons from this project was that:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Running is not the same as healthy.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Kubernetes can tell me that a pod exists.&lt;/p&gt;

&lt;p&gt;Prometheus can tell me that its memory consumption has been increasing for the last two hours.&lt;/p&gt;

&lt;p&gt;Grafana can make that trend immediately visible.&lt;/p&gt;

&lt;p&gt;Alertmanager can tell me when that trend crosses a threshold that requires attention.&lt;/p&gt;

&lt;p&gt;These tools complement Kubernetes rather than replace its built-in health mechanisms.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;Before implementing this stack, I mostly thought about monitoring as dashboards.&lt;/p&gt;

&lt;p&gt;Now I see observability as part of the architecture itself.&lt;/p&gt;

&lt;p&gt;When deploying an application, I should be able to answer questions like:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it available?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it performing normally?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are resources becoming saturated?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Did something change before the incident happened?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And most importantly:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Will I know there's a problem before a user tells me?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Building the monitoring stack made the EKS environment feel much less like a collection of running resources and much more like a system I could actually operate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;Monitoring EKS also forced me to understand more about what happens underneath Kubernetes.&lt;/p&gt;

&lt;p&gt;How does traffic reach my application?&lt;/p&gt;

&lt;p&gt;Why are my worker nodes in private subnets?&lt;/p&gt;

&lt;p&gt;Why do they need NAT Gateways?&lt;/p&gt;

&lt;p&gt;And where exactly does the Application Load Balancer fit into all of this?&lt;/p&gt;

&lt;p&gt;That's what I'll cover next:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding EKS Networking: ALB, Private Subnets &amp;amp; NAT Gateway&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you're running Kubernetes, what are the first metrics or alerts you usually configure?&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>aws</category>
      <category>observability</category>
      <category>devops</category>
    </item>
    <item>
      <title>How I Built My AWS EKS Infrastructure with Terraform</title>
      <dc:creator>Amira Abidi</dc:creator>
      <pubDate>Mon, 31 Aug 2026 11:55:00 +0000</pubDate>
      <link>https://dev.to/amira_abidi/how-i-built-my-aws-eks-infrastructure-with-terraform-23ai</link>
      <guid>https://dev.to/amira_abidi/how-i-built-my-aws-eks-infrastructure-with-terraform-23ai</guid>
      <description>&lt;p&gt;In my previous article, I shared how I moved my application from a local Docker environment to AWS EKS.&lt;/p&gt;

&lt;p&gt;This time, I want to focus on one of the most important parts of the project: &lt;strong&gt;Infrastructure as Code with Terraform&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;My goal was simple: I didn't want my AWS infrastructure to depend on resources created manually from the AWS Console.&lt;/p&gt;

&lt;p&gt;I wanted it to be &lt;strong&gt;reproducible, structured, and easier to maintain&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Terraform?
&lt;/h2&gt;

&lt;p&gt;My architecture includes several AWS components:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;VPC and subnets&lt;/li&gt;
&lt;li&gt;Internet and NAT Gateways&lt;/li&gt;
&lt;li&gt;EKS&lt;/li&gt;
&lt;li&gt;RDS PostgreSQL&lt;/li&gt;
&lt;li&gt;Application Load Balancer&lt;/li&gt;
&lt;li&gt;Route 53&lt;/li&gt;
&lt;li&gt;ACM certificates&lt;/li&gt;
&lt;li&gt;IAM roles and policies&lt;/li&gt;
&lt;li&gt;ECR repositories&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Creating everything manually would work, but reproducing the same architecture consistently would quickly become difficult.&lt;/p&gt;

&lt;p&gt;That's where Terraform came in.&lt;/p&gt;

&lt;p&gt;Instead of describing the infrastructure in documentation, I could describe it directly as code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Structuring the Infrastructure
&lt;/h2&gt;

&lt;p&gt;One thing I quickly learned is that putting every resource into a single &lt;code&gt;main.tf&lt;/code&gt; file doesn't scale very well.&lt;/p&gt;

&lt;p&gt;So I organized the infrastructure into reusable &lt;strong&gt;Terraform modules&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The structure looks roughly like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;terraform/
├── modules/
│   ├── vpc/
│   ├── eks/
│   ├── rds/
│   ├── ecr/
│   └── security/
│
└── environments/
    ├── dev/
    └── prod/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each module has a specific responsibility.&lt;/p&gt;

&lt;p&gt;The VPC module manages networking, the EKS module manages the Kubernetes infrastructure, and the RDS module manages the PostgreSQL database.&lt;/p&gt;

&lt;p&gt;This made the code much easier to understand and maintain.&lt;/p&gt;

&lt;h2&gt;
  
  
  Networking First
&lt;/h2&gt;

&lt;p&gt;Before deploying EKS, I needed the network.&lt;/p&gt;

&lt;p&gt;I created a VPC distributed across &lt;strong&gt;three Availability Zones&lt;/strong&gt;, with public and private subnets.&lt;/p&gt;

&lt;p&gt;The public layer hosts internet-facing components such as the Application Load Balancer and NAT Gateways.&lt;/p&gt;

&lt;p&gt;The EKS worker nodes run in &lt;strong&gt;private subnets&lt;/strong&gt;, which means they aren't directly exposed to the internet.&lt;/p&gt;

&lt;p&gt;The simplified architecture is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Internet
   │
   ▼
Application Load Balancer
   │
   ▼
Private Subnets
   │
   ├── EKS Worker Nodes
   │
   └── RDS PostgreSQL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This was an important lesson for me:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using Kubernetes doesn't remove the need to understand networking.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You still need to think about routing, security groups, public/private subnets, DNS, and internet access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating the EKS Cluster
&lt;/h2&gt;

&lt;p&gt;Once the network was ready, Terraform could create the EKS cluster and its node groups.&lt;/p&gt;

&lt;p&gt;The worker nodes are distributed across the three Availability Zones.&lt;/p&gt;

&lt;p&gt;From there, Kubernetes manages the application workloads.&lt;/p&gt;

&lt;p&gt;My application itself isn't defined directly in Terraform. Kubernetes resources are managed separately, allowing Terraform to focus primarily on the AWS infrastructure.&lt;/p&gt;

&lt;p&gt;I found this separation useful:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terraform manages the infrastructure. Kubernetes manages the workloads.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing Multiple Environments
&lt;/h2&gt;

&lt;p&gt;Another requirement was separating &lt;strong&gt;development and production&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of maintaining two completely different Terraform codebases, both environments reuse the same modules with different configurations.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;              ┌── dev
Terraform ────┤
              └── prod
                  │
                  ▼
             Shared Modules
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means I can change the infrastructure logic once while keeping environment-specific values separate.&lt;/p&gt;

&lt;p&gt;Each environment has its own EKS cluster and RDS database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remote Terraform State
&lt;/h2&gt;

&lt;p&gt;Terraform state is critical because it maps the configuration to the resources that actually exist in AWS.&lt;/p&gt;

&lt;p&gt;Keeping it only on my laptop wasn't something I wanted to rely on.&lt;/p&gt;

&lt;p&gt;So I configured a &lt;strong&gt;remote backend using Amazon S3&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This makes the infrastructure state persistent and independent from my local machine.&lt;/p&gt;

&lt;p&gt;It also reinforced an important point:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Terraform state is part of the infrastructure and needs to be protected accordingly.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;Before this project, Terraform looked mostly like a way to automate AWS resource creation.&lt;/p&gt;

&lt;p&gt;After building a complete environment with it, I see it differently.&lt;/p&gt;

&lt;p&gt;The real value isn't just:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I can create an EKS cluster with Terraform.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It's being able to describe an architecture in a way that is &lt;strong&gt;repeatable, reviewable, and maintainable&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I also learned that the order of thinking matters.&lt;/p&gt;

&lt;p&gt;Before writing Terraform code, I needed to understand the architecture:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;networking → security → compute → database → application → observability&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Terraform doesn't design the architecture for you.&lt;/p&gt;

&lt;p&gt;It forces you to express the architecture you've designed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;Infrastructure is now reproducible and the application is running on Kubernetes.&lt;/p&gt;

&lt;p&gt;But deploying a service isn't enough.&lt;/p&gt;

&lt;p&gt;The next question is:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;How do I know if my Kubernetes cluster and application are actually healthy?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In the next article, I'll look at how I added &lt;strong&gt;Prometheus and Grafana monitoring to AWS EKS&lt;/strong&gt; and what I learned about observability along the way.&lt;/p&gt;

</description>
      <category>terraform</category>
      <category>aws</category>
      <category>kubernetes</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
