<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Itojedollars on Medium]]></title>
        <description><![CDATA[Stories by Itojedollars on Medium]]></description>
        <link>https://medium.com/@itojedollars3?source=rss-a231facc2a9e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*SKA04EJ8wvz9qdo0</url>
            <title>Stories by Itojedollars on Medium</title>
            <link>https://medium.com/@itojedollars3?source=rss-a231facc2a9e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:21:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itojedollars3/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Secure AWS VPC & Kubernetes Cluster with Terraform: Public and Private Subnets, NAT…]]></title>
            <link>https://medium.com/@itojedollars3/building-a-secure-aws-vpc-kubernetes-cluster-with-terraform-public-and-private-subnets-nat-4a9d95321115?source=rss-a231facc2a9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a9d95321115</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-vpc]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Itojedollars]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 08:59:47 GMT</pubDate>
            <atom:updated>2026-10-13T08:59:47.367Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Secure AWS VPC &amp; Kubernetes Cluster with Terraform: Public and Private Subnets, NAT Gateway, and EKS</h3><p><a href="https://github.com/dollarsmoney">https://github.com/dollarsmoney</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4AVr6JmEOrbnRRaHkwv6iA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kd9Rzs-FitXij2K3pfLZ4A.png" /></figure><p>One of the most important parts of deploying workloads on AWS is understanding how network traffic flows between resources and the internet.</p><p>For this project, I worked on designing an AWS Virtual Private Cloud (VPC) to provide network isolation, controlled internet access, and a secure foundation for Kubernetes workloads and EC2 instances.</p><p>The objective was simple: <strong>make the necessary resources accessible without exposing the entire infrastructure to the public internet.</strong></p><h3>1. Designing the VPC Architecture</h3><p>I started by creating a custom VPC with a defined CIDR block, providing a dedicated IP address range for the infrastructure.</p><p>Within the VPC, I separated the network into public and private subnets.</p><p>Public subnets provide connectivity for internet-facing resources and host the NAT Gateway.</p><p>Private subnets host the EKS worker node group and EC2 instances, reducing their direct exposure to the public internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9t85x0q2R0PYvxOKbJbURw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKo4cTiX5w3WTqxb1L9G1Q.png" /></figure><p>The architecture consists of:</p><ul><li>Amazon VPC for network isolation.</li><li>Public and private subnets for workload separation.</li><li>Internet Gateway (IGW) for VPC internet connectivity</li><li>NAT Gateway for outbound internet access from private subnets.</li><li>Route tables to control traffic flow.</li><li>Terraform to provision and manage the infrastructure.</li><li>Amazon EKS and EC2 for compute workloads.</li></ul><h3>2. Configuring the Public Subnets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYoQ4CTBNeJmzJhu7Xb18w.png" /></figure><p>After creating the VPC and public subnets, I attached an Internet Gateway to the VPC.</p><p>I then configured a route table and associated it with the public subnets.</p><p>The key routing rule was:</p><p>0.0.0.0/0 → Internet Gateway</p><p>This tells AWS to route traffic destined for IPv4 addresses outside the VPC through the Internet Gateway.</p><p>However, the route alone does not make every resource publicly accessible. Resources generally need public IP addressing and appropriate security group and network ACL rules for inbound connectivity.</p><p>I also deployed a NAT Gateway in a public subnet and associated it with an Elastic IP address. This provided a public egress point for workloads in the private subnets.</p><h3>3. Configuring the Private Subnets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYoQ4CTBNeJmzJhu7Xb18w.png" /></figure><p>The private subnets were designed to host internal compute resources, including the Amazon EKS worker node group and EC2 instances.</p><p>Rather than assigning public IP addresses to these workloads, I configured a separate route table for the private subnets.</p><p>The default route was:</p><p>0.0.0.0/0 → NAT Gateway</p><p>This allows private resources to initiate outbound IPv4 connections to external services without requiring direct public internet addressing.</p><p>For example, an EKS worker node may need to pull container images, download packages, or communicate with external endpoints. The NAT Gateway provides the outbound path for this traffic.</p><p>The important distinction is that the NAT Gateway supports connections initiated from the private network; it does not provide unsolicited inbound access to private instances.</p><h3>4. Understanding the Routing Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jV84yfut5nkIMpToWuCKSQ.png" /></figure><p>The route tables determine how packets leave each subnet.</p><p>Public subnet traffic</p><p>Internet → Internet Gateway → Public resource, provided the resource has appropriate public addressing and its security rules permit the connection.</p><p>Private subnet outbound traffic</p><p>EKS worker node or EC2 instance → Private route table → NAT Gateway → Internet Gateway → External destination.</p><p>Response traffic returns through the established NAT connection.</p><p>This separation provides a clear network boundary between internal workloads and internet-facing resources.</p><p>It is also important to remember that the Internet Gateway is attached to the VPC, not directly placed inside a subnet. The NAT Gateway, on the other hand, is deployed within a public subnet.</p><h3>5. Managing Infrastructure with Terraform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAETiLpPEpNL61kbWGEVKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TImeAJV9jIgOocj6t0Lpfw.png" /></figure><p>Instead of manually creating every AWS resource through the console, I used Terraform to define the infrastructure as code.</p><p>This makes it possible to version-control the network configuration, review infrastructure changes, and recreate the environment consistently.</p><p>My Terraform configuration covers resources such as:</p><ul><li>VPC and subnet definitions.</li><li>Internet Gateway and NAT Gateway.</li><li>Public and private route tables.</li><li>Route table associations.</li><li>Supporting networking and compute resources.</li></ul><p>Keeping these resources defined in code makes the infrastructure easier to maintain and reduces configuration drift.</p><h3>Configuring Terraform Remote State</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CzMt0opk8tkRdll5VT73XA.png" /></figure><p>Another important consideration is Terraform state management.</p><p>By default, Terraform stores its state locally in a terraform.tfstate file. This can become a problem when multiple engineers work on the same infrastructure or when a CI/CD pipeline needs to manage deployments.</p><p>To address this, a common production approach is to store Terraform state in an Amazon S3 bucket.</p><p>For example:</p><pre>terraform {<br>  backend &quot;s3&quot; {<br>    bucket       = &quot;my-terraform-state-bucket&quot;<br>    key          = &quot;network/terraform.tfstate&quot;<br>    region       = &quot;us-east-1&quot;<br>    use_lockfile = true<br>    encrypt      = true<br>  }<br>}</pre><p>This configuration uses an S3 backend to store state remotely, enables encryption, and uses S3 lockfile-based state locking to coordinate concurrent operations. The bucket must exist before initializing the backend.</p><p>For a production setup, I would also enable S3 versioning, restrict bucket access through IAM, and use appropriate encryption and recovery controls.</p><p>Why remote state matters:</p><ul><li>Team collaboration: Authorized engineers and automation can work with a shared state file.</li><li>State protection: S3 versioning can help recover from accidental state changes.</li><li>Concurrency control: State locking helps prevent conflicting Terraform operations.</li><li>CI/CD integration: Automated infrastructure pipelines can use the same backend without depending on an individual engineer’s local state file.</li></ul><p>Terraform state can contain sensitive infrastructure details, so access should be tightly controlled. Marking a value as sensitive does not automatically remove it from the state file.</p><h3>6. Why This Architecture Matters for Amazon EKS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qXQhylCJPuPwzOT0wLd0Dg.png" /></figure><p>Deploying Kubernetes workloads involves more than creating a cluster and applying manifests. The underlying AWS network affects node connectivity, container image pulls, load balancers, and access to AWS services.</p><p>Placing worker nodes in private subnets reduces their direct exposure to the internet. Public subnets can support internet-facing load balancers, while private subnets host internal workloads.</p><p>In a production environment, I would also verify:</p><ul><li>EKS API endpoint access and security groups.</li><li>Private subnet connectivity to required AWS APIs.</li><li>VPC endpoints where they can reduce NAT dependency.</li><li>NAT Gateway availability and cost.</li><li>Subnet IP capacity for Kubernetes pods and nodes.</li><li>Routing and connectivity across multiple Availability Zones</li></ul><p>For high availability, the design should span multiple Availability Zones. A single NAT Gateway is a useful starting point for a lab, but production environments may require NAT Gateways in multiple Availability Zones to reduce cross-zone dependencies and avoid a single egress failure point.</p><h3>Final Thoughts</h3><p>This project reinforced an important lesson for me: secure cloud infrastructure begins with understanding how networking works.</p><p>A well-designed VPC, correctly configured route tables, private compute resources, and Terraform remote state provide a stronger foundation for deploying and managing workloads on AWS.</p><p>For me, DevOps is not just about automating deployments. It is also about building infrastructure that is secure, repeatable, observable, and maintainable.</p><p>#AWS #Terraform #AmazonVPC #AmazonEKS #Kubernetes #InfrastructureAsCode #DevOps #CloudEngineering</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a9d95321115" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Ingress Controller, NGINX, TLS, SSL, Let’s Encrypt, cert-manager and ClusterIssuer…]]></title>
            <link>https://medium.com/@itojedollars3/kubernetes-ingress-controller-nginx-tls-ssl-lets-encrypt-cert-manager-and-clusterissuer-c87ec7eede5c?source=rss-a231facc2a9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c87ec7eede5c</guid>
            <category><![CDATA[tls-certificate]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[nginx-ingress]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <dc:creator><![CDATA[Itojedollars]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 12:15:10 GMT</pubDate>
            <atom:updated>2026-10-05T23:45:27.942Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Ingress Controller, NGINX, TLS, SSL, Let’s Encrypt, cert-manager and ClusterIssuer, HTTPS</h3><p><a href="https://www.hinty.com.ng/">https://www.hinty.com.ng/</a> you can visit here so see the actual site with the Kubernetes Ingress Controller, NGINX, TLS, SSL, Let’s Encrypt, cert-manager and ClusterIssuer active and done thanks for checking this out 😏</p><p>When you deploy an application to Kubernetes, you eventually need to answer a simple question:</p><p><strong>How does a user on the internet reach my application?</strong></p><p>For example, if someone visits:</p><pre>https://www.hinty.com.ng/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MjJgnzsKlA6bA0RfI8btag.png" /></figure><p>the request might travel through:</p><pre>Internet<br>   ↓<br>DNS<br>   ↓<br>Load Balancer<br>   ↓<br>NGINX Ingress Controller<br>   ↓<br>Kubernetes Ingress<br>   ↓<br>Service<br>   ↓<br>Pod</pre><p>But then another question appears:</p><p><strong>How do we make that connection HTTPS?</strong></p><p>This is where <strong>TLS, certificates, Let’s Encrypt, cert-manager and ClusterIssuer</strong> come together.</p><h3>What Is Kubernetes Ingress?</h3><p>An Ingress is a Kubernetes API resource that defines how external HTTP/HTTPS traffic should be routed to Services inside the cluster.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDJ0PPbKffpS4UNiUYIjyg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8XVT-1TQFmiVYHNqlMRBog.png" /></figure><pre>myapp.com<br>    ↓<br>Ingress<br>    ↓<br>myapp-service<br>    ↓<br>myapp-pod</pre><p>The important thing to understand is:</p><blockquote><strong><em>Ingress is the configuration. It is not the component actually processing the traffic.</em></strong></blockquote><p>Something has to read the Ingress resource and implement those rules.</p><p>That’s the job of an <strong>Ingress Controller</strong>.</p><h3>What Is NGINX Ingress Controller?</h3><p>One popular implementation has been the <strong>NGINX Ingress Controller</strong>.</p><p>It watches Kubernetes Ingress resources and configures NGINX to handle incoming HTTP/HTTPS traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDJ0PPbKffpS4UNiUYIjyg.png" /></figure><p>The relationship is:</p><pre>Ingress Resource<br>       ↓<br>NGINX Ingress Controller<br>       ↓<br>NGINX<br>       ↓<br>Kubernetes Service<br>       ↓<br>Pod</pre><p>For example, your Ingress might say:</p><pre>If the host is:</pre><pre>api.myapp.com</pre><pre>send traffic to:</pre><pre>api-service:80</pre><p>The NGINX Ingress Controller reads that configuration and handles the routing.</p><p>The controller can be installed using Helm or Kubernetes manifests.</p><h3>Now Let’s Talk About SSL and TLS</h3><p>You will often hear people say:</p><blockquote><em>“We need an SSL certificate.”</em></blockquote><p>Technically, modern HTTPS uses <strong>TLS (Transport Layer Security)</strong>.</p><p>SSL is the older protocol that TLS replaced.</p><p>So when someone says:</p><blockquote><em>“SSL certificate”</em></blockquote><p>they normally mean:</p><blockquote><strong><em>TLS certificate used for HTTPS.</em></strong></blockquote><p>TLS provides encryption between the client and the endpoint terminating TLS and allows the client to verify the server’s identity through the certificate.</p><h3>What Happens When Someone Visits HTTPS?</h3><p>Suppose a user enters:</p><pre>https://myapp.com</pre><p>The browser connects to the server and starts a TLS handshake.</p><p>Very simply:</p><pre>Browser<br>   ↓<br>&quot;I want a secure connection&quot;<br>   ↓<br>Server<br>   ↓<br>&quot;Here is my certificate&quot;<br>   ↓<br>Browser verifies certificate<br>   ↓<br>TLS handshake<br>   ↓<br>Encrypted HTTPS connection</pre><p>After the handshake succeeds, application traffic can travel through the encrypted connection.</p><h3>Where Does the Certificate Come From?</h3><p>This is where <strong>Let’s Encrypt</strong> comes in.</p><p>Let’s Encrypt is a Certificate Authority (CA) that can issue publicly trusted TLS certificates.</p><p>But manually managing certificates would be painful.</p><p>You would have to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdSAia_BH_j8t5mIXNhKNQ.png" /></figure><pre>Request certificate<br>       ↓<br>Install certificate<br>       ↓<br>Configure server<br>       ↓<br>Monitor expiration<br>       ↓<br>Renew certificate<br>       ↓<br>Replace certificate</pre><p>This is where <strong>cert-manager</strong> becomes extremely useful.</p><h3>What Is cert-manager?</h3><p>cert-manager is a Kubernetes certificate management system.</p><p>It can request certificates from certificate authorities such as Let’s Encrypt and manage their lifecycle, including renewal.</p><p>The architecture looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRhGytCDHG83jIVZ6NyeBQ.png" /></figure><pre>Kubernetes<br>     |<br>     ↓<br>cert-manager<br>     |<br>     ↓<br>Let&#39;s Encrypt<br>     |<br>     ↓<br>TLS Certificate<br>     |<br>     ↓<br>Kubernetes Secret</pre><p>So instead of manually managing certificates, Kubernetes can automate much of the process.</p><h3>What Is a ClusterIssuer?</h3><p>This is one of the most important parts.</p><p>A <strong>ClusterIssuer</strong> tells cert-manager how certificates should be obtained.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRhGytCDHG83jIVZ6NyeBQ.png" /></figure><pre>ClusterIssuer<br>      |<br>      ↓<br>Let&#39;s Encrypt<br>      |<br>      ↓<br>HTTP-01 challenge<br>      |<br>      ↓<br>Certificate</pre><p>The word <strong>Cluster</strong> matters.</p><p>An Issuer is namespace-scoped.</p><p>A ClusterIssuer is cluster-scoped and can be referenced by Ingress resources across namespaces.</p><p>So you might create:</p><pre>letsencrypt-prod</pre><p>as your ClusterIssuer and then reference it from different application namespaces.</p><h3>How Does Let’s Encrypt Know You Own the Domain?</h3><p>Let’s Encrypt doesn’t simply give anyone a certificate for myapp.com.</p><p>It needs to verify control of the domain.</p><p>One common method is the <strong>HTTP-01 challenge</strong>.</p><p>The flow looks like:</p><pre>cert-manager<br>     |<br>     ↓<br>Let&#39;s Encrypt<br>     |<br>     | &quot;Prove you control myapp.com&quot;<br>     ↓<br>HTTP Challenge<br>     |<br>     ↓<br>http://myapp.com/.well-known/acme-challenge/...<br>     |<br>     ↓<br>NGINX Ingress Controller<br>     |<br>     ↓<br>Temporary challenge endpoint</pre><p>Let’s Encrypt checks that URL.</p><p>If the expected challenge response is available, the domain is validated.</p><p>cert-manager can create the temporary resources needed for this HTTP-01 challenge and route them through the configured Ingress Controller.</p><h3>How Does cert-manager Know Which Ingress Controller to Use?</h3><p>This is important when using NGINX.</p><p>The ClusterIssuer can specify:</p><pre>solvers:<br>  - http01:<br>      ingress:<br>        ingressClassName: nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDJ0PPbKffpS4UNiUYIjyg.png" /></figure><p>That tells cert-manager:</p><blockquote><em>“Use the NGINX Ingress Controller for the HTTP-01 challenge.”</em></blockquote><p>The ingressClassName is important when your cluster has multiple Ingress Controllers.</p><h3>The Ingress Connects Everything Together</h3><p>Your application Ingress can reference the ClusterIssuer.</p><p>Conceptually:</p><pre>Ingress<br>  |<br>  | cert-manager.io/cluster-issuer<br>  ↓<br>letsencrypt-prod</pre><p>And your TLS configuration specifies where the certificate should be stored:</p><pre>TLS<br> ├── Host: myapp.com<br> └── Secret: myapp-tls</pre><p>cert-manager watches the Ingress and can create the corresponding Certificate resource and TLS Secret.</p><p>The Secret ultimately contains:</p><pre>myapp-tls<br>   ├── tls.crt<br>   └── tls.key</pre><p>Kubernetes uses this TLS Secret for the certificate and private key.</p><h3>The Complete Flow</h3><p>Now we can put everything together.</p><p>A user visits:</p><pre>https://myapp.com</pre><h3>1. DNS</h3><p>The domain points to the external endpoint of the Ingress Controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KeNN8Wg9kc7gnQMv3_tSdA.png" /></figure><pre>myapp.com<br>    ↓<br>Load Balancer</pre><h3>2. HTTPS</h3><p>The browser connects over:</p><pre>HTTPS :443</pre><h3>3. NGINX Ingress Controller</h3><p>NGINX receives the request.</p><pre>Browser<br>   ↓<br>HTTPS :443<br>   ↓<br>NGINX Ingress Controller</pre><h3>4. TLS Termination</h3><p>NGINX can terminate TLS using the certificate stored in the Kubernetes Secret.</p><pre>Browser<br>   |<br>   | Encrypted HTTPS<br>   ↓<br>NGINX<br>   |<br>   | TLS termination<br>   ↓<br>Kubernetes Service</pre><p>Kubernetes Ingress TLS configuration references a Secret containing tls.crt and tls.key; the standard Ingress model assumes TLS termination at the ingress point.</p><h3>5. Ingress Routing</h3><p>NGINX reads the Ingress rules:</p><pre>myapp.com<br>    ↓<br>myapp-service</pre><h3>6. Service</h3><p>The Service selects the appropriate Pods.</p><pre>myapp-service<br>      |<br>   ┌──┴──┐<br>   ↓     ↓<br> Pod 1  Pod 2</pre><h3>7. Application</h3><p>Finally, the request reaches the application.</p><h3>The Architecture</h3><p>This is the mental model I keep in mind:</p><pre>INTERNET<br>                            |<br>                            |<br>                    https://myapp.com<br>                            |<br>                            ↓<br>                          DNS<br>                            |<br>                            ↓<br>                    Load Balancer<br>                            |<br>                            ↓<br>              NGINX Ingress Controller<br>                            |<br>                      TLS TERMINATION<br>                            |<br>                            ↓<br>                   Kubernetes Ingress<br>                            |<br>                            ↓<br>                  Kubernetes Service<br>                            |<br>                     ┌──────┴──────┐<br>                     ↓             ↓<br>                   Pod 1         Pod 2</pre><p>And alongside it:</p><pre>cert-manager<br>                         |<br>                         ↓<br>                   ClusterIssuer<br>                         |<br>                         ↓<br>                    Let&#39;s Encrypt<br>                         |<br>                   HTTP-01 Challenge<br>                         |<br>                         ↓<br>                  TLS Certificate<br>                         |<br>                         ↓<br>                Kubernetes TLS Secret<br>                         |<br>                         ↓<br>              NGINX Ingress Controller</pre><h3>The Big Picture</h3><p>So when you see these technologies together:</p><p><strong>Kubernetes Ingress</strong></p><p>defines <strong>how traffic should be routed</strong>.</p><p><strong>NGINX Ingress Controller</strong></p><p>actually <strong>implements those routing rules</strong>.</p><p><strong>TLS</strong></p><p>provides secure encrypted communication.</p><p><strong>Certificate</strong></p><p>allows the client to verify the server’s identity and establish TLS.</p><p><strong>Let’s Encrypt</strong></p><p>acts as the public Certificate Authority issuing the certificate.</p><p><strong>cert-manager</strong></p><p>automates requesting, storing, and renewing certificates.</p><p><strong>ClusterIssuer</strong></p><p>defines how cert-manager should obtain certificates at the cluster level.</p><p>And finally:</p><pre>Browser<br>   ↓<br>HTTPS<br>   ↓<br>Load Balancer<br>   ↓<br>NGINX Ingress Controller<br>   ↓<br>Ingress<br>   ↓<br>Service<br>   ↓<br>Pod</pre><p>while cert-manager handles the certificate lifecycle in the background.</p><p>That is the real relationship between <strong>Ingress, NGINX, TLS, SSL, Let’s Encrypt, cert-manager and ClusterIssuer</strong> in a Kubernetes environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c87ec7eede5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Pull Request to Kubernetes: Building a Secure CI/CD Pipeline with Supply-Chain Security (SAST…]]></title>
            <link>https://medium.com/@itojedollars3/from-pull-request-to-kubernetes-building-a-secure-ci-cd-pipeline-with-supply-chain-security-03e387017d59?source=rss-a231facc2a9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/03e387017d59</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cicd-pipeline]]></category>
            <category><![CDATA[supply-chain-security]]></category>
            <dc:creator><![CDATA[Itojedollars]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 10:22:31 GMT</pubDate>
            <atom:updated>2026-10-05T23:04:11.889Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Pull Request to Kubernetes: Building a Secure CI/CD Pipeline with Supply-Chain Security (SAST, DAST, SCA)</h3><p><a href="https://github.com/Experts-Listing">https://github.com/Experts-Listing</a> you can check out the repos</p><p>CI/CD is usually described simply:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtaDES4c20YidoPA-8FbqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2LIZtpJhC8GfTu9oJMTKA.png" /></figure><p><strong>Push code → build → test → deploy.</strong></p><p>But in a real production environment, the pipeline should do more than automate deployment. It should also help protect the software supply chain.</p><p>A practical flow can look like this:</p><pre>Developer<br>   ↓<br>Pull Request<br>   ↓<br>SAST / SCA / Secret Scanning<br>   ↓<br>Tests<br>   ↓<br>Docker Build<br>   ↓<br>Container Scan<br>   ↓<br>Container Registry<br>   ↓<br>Kubernetes Staging<br>   ↓<br>DAST<br>   ↓<br>Production<br>   ↓<br>Slack Notifications</pre><h3>1. Pull Request: The First Security Gate</h3><p>Instead of allowing developers to push directly to main, changes should go through a Pull Request.</p><p>The CI pipeline automatically runs security and quality checks before the PR can be merged.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQXLlX0pkhvoijnN6xO7JA.png" /></figure><p>For example:</p><pre>Pull Request<br>     ↓<br>   CI<br>     ↓<br> ┌───────────────┐<br> │ Tests         │<br> │ SAST          │<br> │ SCA           │<br> │ Secret Scan   │<br> │ IaC Scan      │<br> └───────────────┘<br>     ↓<br>   Merge</pre><p>This means problems can be detected before they reach production.</p><h3>2. Protecting the Software Supply Chain</h3><p>Supply-chain security is bigger than just scanning application code.</p><p>Modern applications depend on hundreds of third-party packages. A vulnerable or malicious dependency can become a problem for your application.</p><p>This is why the pipeline should include <strong>SCA (Software Composition Analysis)</strong> alongside SAST.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GOqyfL0Rd7SYxogktRSjHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYa6G29ab4G7exLxuFi9ow.png" /></figure><h3>SAST</h3><p>SAST analyzes your source code for security issues.</p><pre>Source Code<br>     ↓<br>    SAST<br>     ↓<br>Security Findings</pre><h3>SCA</h3><p>SCA checks your application dependencies for known vulnerabilities.</p><pre>package.json<br>     ↓<br>Dependency Scanner<br>     ↓<br>Vulnerable package?<br>     ↓<br>Fail pipeline</pre><p>Secret scanning should also prevent credentials such as AWS keys, database passwords, or API tokens from being committed.</p><h3>3. Build and Scan the Container</h3><p>Once the checks pass, the application can be built into a container image.</p><p>I prefer tagging images with the Git commit SHA:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J2LIZtpJhC8GfTu9oJMTKA.png" /></figure><pre>payment-api:a83f92d</pre><p>rather than relying on:</p><pre>payment-api:latest</pre><p>Now we know exactly which commit produced the image.</p><p>Before pushing it to a registry, we can scan the container image for vulnerabilities.</p><pre>Docker Build<br>     ↓<br>Image Scan<br>     ↓<br>SBOM<br>     ↓<br>Container Registry</pre><p>The registry could be ECR, GHCR, or another trusted container registry.</p><h3>4. Deploy to Kubernetes</h3><p>After the image passes the required checks, it can be deployed to Kubernetes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k_MXguWz55SFC0SJ13oJyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L81PTCWkt8OgCvamnxqvJg.png" /></figure><pre>Container Registry<br>        ↓<br>Kubernetes Staging</pre><p>Staging gives us an environment where we can test the actual running application.</p><p>This is where DAST becomes useful.</p><h3>5. SAST vs DAST</h3><p>These two are often confused.</p><p><strong>SAST</strong> looks at the application code:</p><pre>Source Code → SAST</pre><p><strong>DAST</strong> tests the running application:</p><pre>Running Application → DAST</pre><p>For example:</p><pre>Kubernetes Staging<br>       ↓<br>Application<br>       ↓<br>DAST Scanner<br>       ↓<br>Security Results</pre><p>If the application passes the required checks, the same container image can be promoted to production.</p><p>The goal is:</p><p><strong>Build once, test it, then promote the same artifact.</strong></p><h3>6. Slack Notifications</h3><p>The pipeline shouldn’t operate silently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HBSkHAtzUOuhSxvGBGDRBA.png" /></figure><p>Slack can notify the team when important events happen:</p><pre>PR opened<br>   ↓<br>CI started<br>   ↓<br>Security scan failed<br>   ↓<br>Slack notification</pre><p>or:</p><pre>Deployment successful<br>       ↓<br>Webhook<br>       ↓<br>Slack</pre><p>Webhooks allow different systems to communicate automatically.</p><p>For example, a CI/CD system can send an HTTP request when a deployment succeeds or fails, and that event can trigger a Slack notification.</p><p>A production failure could result in something like:</p><pre>Deployment Failed</pre><pre>Application: payment-api<br>Environment: production<br>Commit: a83f92d<br>Stage: Kubernetes deployment</pre><p>This means the team can react quickly without constantly watching the CI/CD dashboard.</p><h3>The Complete Picture</h3><p>Putting everything together:</p><pre>Developer<br>                        ↓<br>                  Pull Request<br>                        ↓<br>              ┌──────────────────┐<br>              │   CI Security     │<br>              │                  │<br>              │ SAST             │<br>              │ SCA              │<br>              │ Secret Scanning  │<br>              │ IaC Scanning     │<br>              └────────┬─────────┘<br>                       ↓<br>                     Tests<br>                       ↓<br>                  Docker Build<br>                       ↓<br>                 Image Scanning<br>                       ↓<br>                     SBOM<br>                       ↓<br>               Container Registry<br>                       ↓<br>               Kubernetes Staging<br>                       ↓<br>                      DAST<br>                       ↓<br>               Production Deploy<br>                       ↓<br>                Slack / Webhooks</pre><p>A mature CI/CD pipeline isn’t just about deploying faster.</p><p>It creates a controlled path for moving software from a developer’s laptop to production while continuously asking:</p><p><strong>Is this code tested?</strong></p><p><strong>Is it secure?</strong></p><p><strong>Are its dependencies trustworthy?</strong></p><p><strong>Is the container safe?</strong></p><p><strong>Are we deploying the exact artifact we tested?</strong></p><p><strong>Does the team know what happened?</strong></p><p>That’s where CI/CD starts becoming <strong>DevSecOps</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03e387017d59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Blockchain Fintech Platform Using Microservices,Kubernetes(EKS) and AWS]]></title>
            <link>https://medium.com/@itojedollars3/i-built-a-blockchain-fintech-platform-using-microservices-kubernetes-and-aws-16f46140a85f?source=rss-a231facc2a9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/16f46140a85f</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Itojedollars]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 11:57:30 GMT</pubDate>
            <atom:updated>2026-06-24T17:01:33.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YsbY4cMTBprcer4RFZI-GQ.png" /></figure><h3>SDLC: From Code to Production (Docker → CI/CD → ECR →EKS→ Cloud)</h3><p>One of the main goals of this project was not just to build services, but to simulate a real-world software delivery lifecycle (SDLC) used in production fintech systems.</p><p>Here’s how code moves from development to deployment.</p><h3>1. Local Development (Code Phase)</h3><p>Everything starts with individual services developed locally.</p><p>Each microservice is built using:</p><ul><li>Node.js / TypeScript</li><li>Express APIs</li><li>Prisma ORM (for database interactions)</li><li>gRPC for inter-service communication</li></ul><p>At this stage, each service is independent but designed to work within a distributed system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wnQe-5QNRJ6MIxJs3OjtfQ.png" /></figure><h3>2. Containerization (Docker Layer)</h3><p>Once a service is stable, it is containerized using Docker.</p><p>Each service has its own Dockerfile:</p><ul><li>Base image: Node Alpine</li><li>Multi-stage builds for optimization</li><li>Environment-based configuration</li><li>Health checks for service readiness</li></ul><p>This ensures consistency across all environments:<br> development, staging, and production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCRc7za-eH-KX-_gscsofA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lYnu5xeiwSm0Qv-SjPGGg.png" /></figure><h3>3. Local Orchestration (Docker Compose)</h3><p>Before moving to Kubernetes, the full system is tested locally using Docker Compose.</p><p>Docker Compose spins up the entire ecosystem:</p><ul><li>API Gateway</li><li>All microservices</li><li>PostgreSQL (Supabase-compatible setup)</li><li>Redis cache</li><li>Kafka message broker</li><li>Observability stack (optional local setup)</li></ul><p>This allows full end-to-end testing of:</p><ul><li>Event-driven flows</li><li>Inter-service communication</li><li>Transaction lifecycle</li><li>Failure handling</li></ul><p>At this stage, I validate that the system behaves like a real distributed environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5U14TH2UHGSO93uM-9DVA.png" /></figure><h3>4. CI/CD Pipeline (DevOps Layer)</h3><p>Once code is committed to GitHub, the CI/CD pipeline is triggered.</p><p>Using GitHub Actions, the pipeline performs:</p><ul><li>Code linting and validation</li><li>Running unit and integration tests</li><li>Building Docker images for each service</li><li>Tagging images with commit SHA/version</li></ul><p>This ensures every change is verified before deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22VN8Ph-V7xoiZntvC9AEw.png" /></figure><h3>5. Container Registry (AWS ECR)</h3><p>After successful builds, Docker images are pushed to <strong>Amazon Elastic Container Registry (ECR)</strong>.</p><p>Each microservice has its own repository in ECR:</p><ul><li>auth-service</li><li>wallet-service</li><li>blockchain-service</li><li>transaction-service</li><li>notification-service</li></ul><p>This acts as the single source of truth for all deployable artifacts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDiby1uEqsxhAAQD4erqJA.png" /></figure><h3>6. Infrastructure Deployment (Terraform + Kubernetes)</h3><p>Infrastructure is provisioned using Terraform:</p><ul><li>AWS EKS cluster</li><li>VPC networking</li><li>IAM roles and policies</li><li>Load balancers and security groups</li></ul><p>Once infrastructure is ready, Kubernetes pulls images directly from ECR.</p><p>ArgoCD (GitOps) ensures:</p><ul><li>Automated deployments</li><li>Declarative infrastructure</li><li>Version-controlled releases</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAETiLpPEpNL61kbWGEVKg.png" /></figure><h3>7. Production Runtime (EKS Cluster)</h3><p>Finally, services run in Kubernetes pods inside AWS EKS.</p><p>At runtime:</p><ul><li>Services communicate via internal cluster networking</li><li>Kafka handles asynchronous workflows</li><li>Redis manages caching and rate limiting</li><li>Prometheus + Grafana monitor system health</li><li>Jaeger traces requests across services</li></ul><p>This completes the full production-grade SDLC loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SkEhoqPuZztLaWR8rPMNwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_mr9swqWZDieyvf52T1MWg.png" /></figure><h3>Summary Flow</h3><p>Code → GitHub → CI/CD (GitHub Actions) → Docker Build → ECR → Terraform → EKS (Kubernetes) → Observability Stack</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61MsASNgP9jVUoP4HZ3Osg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NdmMAnEdGoXuryxPhqgYhg.png" /></figure><h3>Key Takeaway</h3><p>The biggest learning from this SDLC design is that modern software delivery is not just about writing code.</p><p>It is about:</p><ul><li>Automation</li><li>Repeatability</li><li>Infrastructure as code</li><li>Reliable deployment pipelines</li><li>Observability from day one</li></ul><p>This is what separates hobby projects from production-grade systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16f46140a85f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Production-Grade DevOps on AWS: Event-Driven Microservices with Kafka, Docker, Kubernetes…]]></title>
            <link>https://medium.com/@itojedollars3/production-grade-devops-on-aws-event-driven-microservices-with-kafka-docker-kubernetes-06c75e6a2ac9?source=rss-a231facc2a9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/06c75e6a2ac9</guid>
            <category><![CDATA[aws-ec2]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Itojedollars]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 10:36:09 GMT</pubDate>
            <atom:updated>2026-06-19T10:36:09.172Z</atom:updated>
            <content:encoded><![CDATA[<h3>Production-Grade DevOps on AWS: Event-Driven Microservices with Kafka, Docker, Kubernetes, Terraform, and GitOps CI/CD</h3><h3>Software Development Lifecycle (SDLC) for PayFlow OS</h3><p>One of the primary goals of PayFlow OS was to build a fully automated software delivery pipeline where infrastructure, applications, and deployments are managed as code.</p><p>The platform follows a GitOps-driven SDLC built around GitHub, GitHub Actions, Amazon ECR, ArgoCD, Terraform, Kubernetes (EKS), and Apache Kafka.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zldRAhAGWbupKosGutvUwg.png" /></figure><h3>1. Development Phase</h3><p>Development begins with engineers working on independent microservices such as:</p><ul><li>Authentication Service</li><li>Wallet Service</li><li>Payment Service</li><li>Fraud Detection Service</li><li>Notification Service</li></ul><p>Each service is maintained in source control and follows a feature branch workflow.</p><p>Once a feature is completed, changes are pushed to GitHub where the CI/CD pipeline automatically begins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sv_ioXPGucAZplnysIwGgg.png" /><figcaption>monrepo overview</figcaption></figure><h3>2. Continuous Integration (GitHub Actions)</h3><p>Every push or pull request triggers a GitHub Actions workflow.</p><p>The CI pipeline performs:</p><ul><li>Source code validation</li><li>Dependency installation</li><li>Unit testing</li><li>Integration testing</li><li>Static code analysis</li><li>Docker image builds</li></ul><p>This ensures only validated code progresses to later stages of the pipeline.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7UPjGamW6JutMtOIlCSVg.png" /></figure><h3>CI Workflow</h3><pre>Developer Push<br>      │<br>      ▼<br> GitHub Repository<br>      │<br>      ▼<br> GitHub Actions<br>      │<br> ┌────┼────┐<br> │    │    │<br> ▼    ▼    ▼<br>Tests Lint Build</pre><h3>3. Containerization with Docker</h3><p>After successful validation, each microservice is packaged into a Docker image.</p><p>Containerization provides:</p><ul><li>Environment consistency</li><li>Portability</li><li>Faster deployments</li><li>Simplified scaling</li></ul><p>Every service is versioned and tagged before being pushed to the container registry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xh9nlYRfFQ3ehFUD1nK8Hw.png" /></figure><h3>4. Image Management with Amazon ECR</h3><p>Built container images are stored in Amazon Elastic Container Registry (ECR).</p><p>ECR serves as the central image repository for the platform.</p><p>Benefits include:</p><ul><li>Secure image storage</li><li>Version-controlled deployments</li><li>Native AWS integration</li><li>Easy rollback to previous releases</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pq1Kfxz5y8l8MDgR0za7A.png" /></figure><h3>Deployment Artifact Flow</h3><pre>GitHub Actions<br>        │<br>        ▼<br> Docker Build<br>        │<br>        ▼<br> Amazon ECR</pre><h3>5. Infrastructure Provisioning with Terraform</h3><p>Infrastructure is provisioned using Terraform.</p><p>Rather than manually creating resources in the AWS Console, the entire environment is defined as code.</p><p>Terraform provisions:</p><ul><li>VPC</li><li>Public and private subnets</li><li>Route tables</li><li>Internet and NAT Gateways</li><li>Security groups</li><li>Amazon EKS</li><li>Application Load Balancers</li><li>IAM Roles and Policies</li><li>Auto Scaling components</li></ul><p>This creates a fully reproducible environment that can be deployed consistently across development, staging, and production environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isXmNNppFLC6TIRs6ckhTA.png" /></figure><h3>6. Kubernetes Orchestration (Amazon EKS)</h3><p>Once infrastructure is available, workloads are deployed onto Amazon Elastic Kubernetes Service (EKS).</p><p>Kubernetes provides:</p><ul><li>Container orchestration</li><li>Service discovery</li><li>Self-healing workloads</li><li>Rolling updates</li><li>Resource management</li></ul><p>Every microservice runs inside Kubernetes Pods managed through Deployments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NALxJNE4KcwFQJ7r2vjUqA.png" /></figure><h3>7. GitOps Deployment with ArgoCD</h3><p>ArgoCD is used as the continuous delivery engine.</p><p>Instead of deploying directly from CI pipelines, Kubernetes manifests are stored in Git and managed declaratively.</p><p>ArgoCD continuously monitors the repository and ensures the cluster state matches the desired state defined in Git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*kuJH2ylB77OfjsrSEhW8tQ.jpeg" /></figure><h3>ArgoCD Responsibilities</h3><ul><li>Automated deployments</li><li>Drift detection</li><li>Rollbacks</li><li>Cluster synchronization</li><li>Deployment visibility</li></ul><p>This creates a true GitOps workflow where Git becomes the single source of truth.</p><h3>GitOps Flow</h3><pre>GitHub<br>    │<br>    ▼<br> Kubernetes Manifests<br>    │<br>    ▼<br> ArgoCD<br>    │<br>    ▼<br> Amazon EKS</pre><h3>8. Traffic Management with Application Load Balancer</h3><p>External traffic enters through an AWS Application Load Balancer.</p><p>The ALB:</p><ul><li>Terminates incoming traffic</li><li>Performs health checks</li><li>Routes requests to Kubernetes workloads</li><li>Distributes traffic across healthy instances</li></ul><p>This ensures high availability and efficient traffic distribution.</p><h3>9. Auto Scaling Strategy</h3><p>The platform scales at multiple layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPvKt7Q8c0_st9voJVnvww.png" /></figure><h3>Kubernetes Horizontal Pod Autoscaler (HPA)</h3><p>Automatically scales pods based on:</p><ul><li>CPU utilization</li><li>Memory utilization</li><li>Custom metrics</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkujLeiqJ3fBBnNyaJ9Sow.png" /></figure><h3>EKS Node Scaling</h3><p>Automatically adds or removes worker nodes depending on cluster demand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCfcgFr5iB3ST-BUgxkihQ.png" /></figure><h3>Load Balancer Distribution</h3><p>Traffic is distributed evenly across healthy application replicas.</p><p>This architecture allows the platform to handle sudden increases in transaction volume without manual intervention.</p><h3>10. Event-Driven Communication with Apache Kafka</h3><p>Apache Kafka serves as the backbone of communication between services.</p><p>Instead of relying on synchronous service-to-service calls, events are published and consumed asynchronously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgzcG9_hzNDCd3wX-K-VQQ.png" /></figure><p>Example events include:</p><ul><li>PaymentInitiated</li><li>PaymentApproved</li><li>FraudDetected</li><li>BalanceUpdated</li><li>NotificationSent</li></ul><p>This architecture provides:</p><ul><li>Loose coupling</li><li>Fault tolerance</li><li>Event replay capabilities</li><li>High throughput processing</li></ul><p>Kafka enables services to evolve independently while maintaining system reliability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vloZfSNyR5NvyafUUBI9Fw.png" /></figure><h3>End-to-End Delivery Pipeline</h3><pre>Developer<br>    │<br>    ▼<br>GitHub<br>    │<br>    ▼<br>GitHub Actions (CI)<br>    │<br>    ▼<br>Docker Build<br>    │<br>    ▼<br>Amazon ECR<br>    │<br>    ▼<br>Terraform (Infrastructure)<br>    │<br>    ▼<br>Amazon EKS<br>    │<br>    ▼<br>ArgoCD (GitOps CD)<br>    │<br>    ▼<br>Kubernetes Deployments<br>    │<br>    ▼<br>Application Load Balancer<br>    │<br>    ▼<br>Users</pre><pre>                    │<br>                    ▼<br>              Apache Kafka<br>                    │<br>                    ▼<br>             Microservices</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Zyaf5mUQLCm-Q1lyBg6GQ.png" /></figure><p><a href="https://github.com/dollarsmoney/PayFlow-Cloud-MicroService-Kubernetes-">https://github.com/dollarsmoney/PayFlow-Cloud-MicroService-Kubernetes-</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=06c75e6a2ac9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architecting Resilient MLOps Pipelines: A Multi-AZ Deployment Strategy on AWS using Kubernetes…]]></title>
            <link>https://medium.com/@itojedollars3/architecting-resilient-mlops-pipelines-a-multi-az-deployment-strategy-on-aws-using-kubernetes-24dfc209f15d?source=rss-a231facc2a9e------2</link>
            <guid isPermaLink="false">https://medium.com/p/24dfc209f15d</guid>
            <category><![CDATA[amazon-eks]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[architecting-resilient-ml]]></category>
            <category><![CDATA[devsecops]]></category>
            <dc:creator><![CDATA[Itojedollars]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 20:42:43 GMT</pubDate>
            <atom:updated>2026-06-18T20:42:43.000Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Architecting Resilient MLOps Pipelines: A Multi-AZ Deployment Strategy on AWS using </strong>Kubernetes, MLFOW Terraform&amp;CI/CD</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgyuLBJfq0xYB9s3tk2y-w.png" /><figcaption>MLFLOW VPC</figcaption></figure><h3>Project Architecture (AWS Infrastructure Overview)</h3><p>This system deploys a Flask-based Intent Classifier on AWS using Terraform. The infrastructure is designed for scalability, high availability, and reproducibility, and includes EC2-based deployment, Kubernetes orchestration, and a full CI/CD pipeline for automated delivery.</p><h3>VPC and Networking Layer</h3><p>The foundation of the architecture is a custom Virtual Private Cloud (VPC).</p><ul><li>VPC CIDR: 10.10.0.0/16</li><li>Two public subnets deployed across multiple Availability Zones</li><li>Internet Gateway attached to the VPC for external access</li><li>Route tables configured with a default route (0.0.0.0/0) to the Internet Gateway</li></ul><p>This ensures the application is publicly accessible while remaining logically isolated within its own network boundary.</p><h3>Subnet Design (Multi-AZ Setup)</h3><p>The infrastructure uses a multi-AZ subnet strategy:</p><ul><li>Public Subnet A: 10.10.1.0/24</li><li>Public Subnet B: 10.10.2.0/24</li></ul><p>Each subnet is deployed in a different Availability Zone to improve fault tolerance and availability.</p><p>This allows compute workloads to be distributed across AZs for resilience and high availability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bYl08xLjHRxwgvUUlLiAYQ.png" /></figure><h3>Security Groups (Traffic Control Layer)</h3><p>A two-layer security model is used to control traffic flow:</p><h3>ALB Security Group</h3><ul><li>Allows inbound HTTP (port 80) from the internet</li><li>Acts as the public entry point into the system</li></ul><h3>Compute Security Group</h3><ul><li>Allows inbound traffic on port 80 only from the ALB security group</li><li>Optional SSH access (port 22) restricted by CIDR for controlled access</li></ul><p>This ensures compute resources are never directly exposed to the internet.</p><h3>Application Load Balancer (ALB)</h3><p>An internet-facing Application Load Balancer is used to distribute traffic across compute instances.</p><ul><li>Listener: HTTP (port 80)</li><li>Target Group: EC2 instances in the Auto Scaling Group</li><li>Health Check Path: /health</li><li>Expected Response: HTTP 200</li></ul><p>The ALB ensures:</p><ul><li>Load distribution across instances</li><li>Automatic failover to healthy targets</li><li>High availability across multiple AZs</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ick4uK1S35GLKoy3q9ukvA.png" /></figure><h3>Auto Scaling Group (Compute Layer — EC2 Mode)</h3><p>The application can be deployed using a traditional EC2-based Auto Scaling Group.</p><ul><li>Launch Template: Ubuntu 20.04 + user-data bootstrap script</li><li>Desired Capacity: 1</li><li>Min Size: 1</li><li>Max Size: 3</li><li>Health Check Type: ELB</li></ul><p>The ASG automatically:</p><ul><li>Replaces unhealthy instances</li><li>Maintains desired capacity</li><li>Supports scaling based on demand (future enhancement)</li><li>Ensures continuous availability</li></ul><h3>EC2 Bootstrapping (User Data Script)</h3><p>Each EC2 instance is initialized using a userdata.sh script.</p><p>This script:</p><ul><li>Installs system dependencies</li><li>Sets up Python environment</li><li>Installs application requirements</li><li>Trains or loads the ML model</li><li>Starts the Flask application using Gunicorn</li><li>Serves traffic via Nginx on port 80</li></ul><p>This ensures every instance is fully self-configuring and reproducible at launch time.</p><h3>Application Layer (Flask + Gunicorn + Nginx)</h3><p>The Intent Classifier API runs in a production-ready stack:</p><ul><li>Flask handles inference logic (/predict, /health)</li><li>Gunicorn serves the WSGI application</li><li>Nginx acts as a reverse proxy on port 80</li></ul><p>This setup improves:</p><ul><li>Performance under concurrent load</li><li>Stability and process management</li><li>Production readiness</li></ul><h3>Kubernetes Layer (Containerized Deployment — EKS Option)</h3><p>In addition to EC2-based deployment, the system can also run on Kubernetes (Amazon EKS) for container orchestration.</p><h3>Kubernetes Architecture</h3><ul><li>EKS Cluster manages container workloads</li><li>Dockerized Flask application runs as Pods</li><li>Deployments manage replica scaling and rolling updates</li><li>Services expose internal networking</li><li>Ingress or AWS Load Balancer Controller exposes external traffic</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtQcW7gbGwdzTZIXOYo_-A.png" /></figure><h3>Kubernetes Benefits</h3><ul><li>Horizontal Pod Autoscaling instead of instance scaling</li><li>Rolling deployments with zero downtime</li><li>Self-healing containers</li><li>Better resource efficiency than EC2-based deployments</li><li>Easier migration toward microservices architecture</li></ul><p>This provides a modern, cloud-native deployment path alongside the traditional EC2 + ASG setup.</p><h3>CI/CD Pipeline (Automated Delivery System)</h3><p>A CI/CD pipeline is implemented using GitHub Actions to automate the full delivery lifecycle of the application and infrastructure.</p><h3>Continuous Integration (CI)</h3><p>On every push or pull request:</p><ul><li>Code is linted and validated</li><li>Unit tests are executed</li><li>Application dependencies are verified</li><li>Docker image is built (if containerized version is used)</li></ul><p>This ensures code quality before deployment.</p><h3>Continuous Delivery / Deployment (CD)</h3><p>After successful CI:</p><ul><li>Docker images are pushed to a container registry (e.g., ECR or Docker Hub)</li><li>Terraform is triggered to provision or update AWS infrastructure</li><li>Kubernetes manifests (if enabled) are applied to the EKS cluster</li><li>EC2 Auto Scaling Group can be updated via rolling deployment strategy</li></ul><p>This enables fully automated infrastructure and application delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwnOfBRZ6uL54q7lhS5jtw.png" /></figure><h3>CI/CD Flow Overview</h3><pre>GitHub Push<br>    │<br>    ▼<br>GitHub Actions Pipeline<br>    │<br>    ├── Lint + Tests<br>    ├── Build Docker Image<br>    ├── Push to Registry<br>    ├── Terraform Apply<br>    └── Deploy to EC2 or Kubernetes</pre><h3>CI/CD Benefits</h3><ul><li>Eliminates manual deployment steps</li><li>Ensures consistent environments</li><li>Reduces deployment risk</li><li>Enables rapid iteration</li><li>Supports both EC2 and Kubernetes deployment strategies</li></ul><h3>Terraform Infrastructure as Code</h3><p>All AWS resources are provisioned using Terraform.</p><p>Terraform manages:</p><ul><li>VPC and networking</li><li>Subnets and routing</li><li>Security groups</li><li>ALB and target groups</li><li>Launch templates</li><li>Auto Scaling Groups</li><li>(Optional) EKS cluster and Kubernetes resources</li><li>CI/CD infrastructure integration hooks</li></ul><p>This allows the entire infrastructure to be recreated with a single command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4dYcNvQ9H-yXt7d6vybwWQ.png" /></figure><pre>terraform apply</pre><h3>Model Endpoint Testing</h3><p>Once deployed, the API can be tested through the ALB DNS:</p><pre>curl http://&lt;alb-dns&gt;/health</pre><pre>curl -X POST http://&lt;alb-dns&gt;/predict \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{&quot;text&quot;:&quot;I want to cancel my subscription&quot;}&#39;</pre><h3>Infrastructure Tear Down</h3><p>To destroy the environment:</p><pre>terraform destroy</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24dfc209f15d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>