<?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 Varunsimha M P on Medium]]></title>
        <description><![CDATA[Stories by Varunsimha M P on Medium]]></description>
        <link>https://medium.com/@varunsimha90?source=rss-055cb88ff8ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rwpaXty92wDjmh8d</url>
            <title>Stories by Varunsimha M P on Medium</title>
            <link>https://medium.com/@varunsimha90?source=rss-055cb88ff8ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:17:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@varunsimha90/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 an End-to-End DevOps Project on AWS using Terraform, Kubernetes, Jenkins (CI/CD), GitOps…]]></title>
            <link>https://medium.com/@varunsimha90/building-an-end-to-end-devops-project-on-aws-using-terraform-kubernetes-jenkins-ci-cd-gitops-b5af2453b3ea?source=rss-055cb88ff8ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5af2453b3ea</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Varunsimha M P]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 10:56:49 GMT</pubDate>
            <atom:updated>2025-06-19T04:44:41.101Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an End-to-End DevOps Project on AWS using Terraform, Kubernetes, Jenkins (CI/CD), GitOps, ArgoCD with Full Prometheus Monitoring &amp; Grafana Visualization</h3><p>In this project, I built a <strong>complete end-to-end DevOps pipeline</strong> based on GitOps principles, with full automation, observability, and scalability. The pipeline delivers a seamless flow from code commit to application deployment on <strong>AWS EKS</strong>, with <strong>Prometheus</strong> and <strong>Grafana</strong> for real-time monitoring and dashboards.</p><p>Here’s a detailed walkthrough of the architecture and process:</p><h3>🔧Infrastructure Setup using Terraform</h3><ul><li>The entire AWS infrastructure was built and automated using <strong>Terraform</strong>.</li><li>I used a <strong>Terraform backend with state locking</strong>, so multiple team members can safely collaborate without state conflicts.</li><li>The state was stored in an <strong>S3 bucket</strong> with locking enabled.</li></ul><p><strong>Key AWS resources provisioned:</strong></p><ul><li>VPC and EC2 instance for Jenkins, Prometheus, and Grafana configuration</li><li><strong>EKS Cluster</strong> (Kubernetes on AWS)</li><li><strong>EFS</strong> (Elastic File System) for persistent storage</li><li><strong>ALB</strong> (Application Load Balancer)</li><li><strong>IAM Roles </strong>for EKS and EC2</li><li><strong>Route 53</strong> for DNS management</li><li><strong>Certificate Manager (ACM)</strong> for TLS/SSL certificates</li></ul><h3>☸️ Kubernetes Architecture Details</h3><p>The <strong>AWS EKS cluster</strong> was provisioned with:</p><ul><li>Multi-AZ setup for high availability</li><li>Managed Node Groups with <strong>EC2 instances</strong></li><li>Cluster Autoscaler enabled to scale nodes based on resource demand</li><li>AWS ALB Ingress Controller and AWS EFS CSI Driverwas installed using Helm</li></ul><p><strong>Key Kubernetes Components Used</strong>:</p><p>✅ <strong>Deployment</strong><br> Used to manage stateless application pods, ensuring zero-downtime rolling updates and automatic pod restarts on failure.</p><p>✅ <strong>StatefulSet</strong><br> Used for deploying the database pods that required <strong>stable storage</strong> and <strong>network identities</strong>. PersistentVolumeClaims (PVC) backed by <strong>Amazon EFS</strong> were used to provide shared, persistent storage.</p><p>✅ <strong>PersistentVolumeClaim (PVC)</strong> + <strong>StorageClass</strong><br> Provisioned <strong>dynamic storage</strong> with <strong>Amazon EFS</strong> to back StatefulSet pods.</p><p>✅ <strong>Ingress</strong><br> Configured with <strong>ALB Ingress Controller</strong>:</p><ul><li>Automatic ALB provisioning</li><li>TLS termination via ACM</li><li>URL path-based routing</li><li>Secure public access to the application</li></ul><p>✅ <strong>Secrets</strong><br> Kubernetes Secrets were used to securely inject:</p><ul><li>Database credentials</li></ul><p>✅ <strong>ConfigMaps</strong><br> Used to manage dynamic application configuration.</p><p>✅ <strong>ServiceAccount + RBAC</strong><br> Granular <strong>role-based access control (RBAC)</strong> was configured.</p><ul><li>Service accounts created for ArgoCD, Prometheus, and other components.</li><li>Permissions are limited using fine-grained RBAC policies.</li></ul><h3>🏗️ CI/CD Workflow with Jenkins, GitHub &amp; Docker</h3><ul><li><strong>Jenkins</strong> was configured as the core CI/CD engine.</li><li>Required <strong>plugins were installed</strong> to integrate with GitHub and Prometheus.</li><li>A <strong>GitHub username/password credential</strong> was created and securely injected into Jenkins.</li><li>The workflow:</li></ul><ol><li>The developer pushes code to <strong>the GitHub</strong> repo via <strong>Git</strong>.</li><li>A <strong>GitHub webhook</strong> automatically triggers a <strong>Jenkins pipeline</strong> job.</li><li>Jenkins <strong>clones the repo</strong>, builds a <strong>Docker image</strong>, and pushes it to <strong>Amazon ECR</strong>.</li><li>Jenkins updates a <strong>GitOps repo</strong> (which contains the Kubernetes manifests).</li></ol><h3>🚀 GitOps Deployment with ArgoCD</h3><ul><li><strong>ArgoCD</strong> was configured as the GitOps controller.</li><li>The ArgoCD <strong>application</strong> was created and synced with the GitOps repo.</li><li>ArgoCD continuously watches the GitOps repo for changes.</li><li>On update, ArgoCD <strong>automatically deploys</strong>:</li><li><strong>Application pods</strong> using Kubernetes Deployment</li><li><strong>Database pods</strong> using StatefulSet</li><li>Persistent storage for database pods was provided by <strong>Amazon EFS</strong> through PersistentVolumeClaims</li></ul><h3>🌐 External Access &amp; TLS</h3><ul><li>External access to the application is routed through an <strong>Ingress Controller</strong>, backed by <strong>AWS ALB</strong>.</li><li><strong>TLS/SSL certificates</strong> were provided by <strong>AWS ACM</strong>.</li><li><strong>DNS resolution</strong> was handled via <strong>Route 53.</strong></li></ul><h3>📡 Monitoring with Prometheus and Grafana</h3><ul><li><strong>Prometheus</strong> was deployed into the Kubernetes cluster with <strong>Role-Based Access (RBAC)</strong> configured to access required metrics.</li></ul><p><strong>Prometheus was configured to scrape:</strong></p><ul><li>Kubernetes cluster metrics</li><li>Jenkins pipeline metrics</li></ul><p><strong>Grafana dashboards were created to visualize:</strong></p><ul><li>Kubernetes pod &amp; node health</li><li>Jenkins pipeline status</li><li>Email alerts were configured—any pipeline/job failure or unhealthy cluster state triggers <strong>email notifications</strong> for immediate action.</li></ul><p><strong>🔍 Testing &amp; Validation Process</strong></p><p>For complete validation and documentation, I captured several key screenshots and snippets:</p><p>✅ Terraform backend with state locking</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*cGm07I1ob-nT_OCnMMcVgw.png" /></figure><p>✅ Jenkins plugin installation steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_2uR_iK0ZAPKKbNqzXl4Eg.png" /></figure><p>✅ GitHub username/password credential creation in Jenkins</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Gp7BCxtNLWtKWzrxSAl93w.png" /></figure><p>✅ ArgoCD application creation and first sync</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*1Bz1uw3OppuHoVhD-dZmbg.png" /></figure><p>✅Application Running before changes with SSL certificate enabled</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*MGaONqCx3tou_IhlR6lysw.png" /></figure><p>✅ Jenkins pipeline run after changes and code commit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*26vKdRU8itHFRGApNFsS2w.png" /></figure><p>✅ ArgoCD auto-sync of updated Kubernetes manifests</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9Qmz0t4CJ--uFf7GWbpcvA.png" /></figure><p>✅Application Running after changes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*s_kV8P6n6ZxV3hyJVUfZxw.png" /></figure><p>✅ Grafana dashboards showing:</p><ul><li>Jenkins jobs status</li><li>Kubernetes node health</li><li>Pod resource usage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*j1CBQEXQvASNrgZ3R0heXQ.png" /></figure><h3>🧰 Full Tech Stack Used</h3><p>Terraform | Jenkins | GitHub | GitOps | ArgoCD | Docker | AWS EKS | ECR | EFS | Route 53 | ACM | ALB | Ingress Controller | Kubernetes | Helm | Prometheus | Grafana | ConfigMaps | Secrets | StatefulSets | Deployments | RBAC | S3 | IAM</p><h3>📝 Final Thoughts</h3><p>This architecture provides:</p><p>✅ Fully automated infrastructure provisioning<br> ✅ Git-driven deployments (GitOps)<br> ✅ CI/CD pipeline from GitHub to Kubernetes<br> ✅ Real-time monitoring and visualization<br> ✅ Full observability and proactive alerts<br> ✅ Highly scalable, secure, and production-ready deployment model</p><p>📂 <strong>GitHub Source Code</strong>: <a href="https://github.com/YOUR_GITHUB_REPO_LINK_HERE">👉</a> <a href="https://github.com/varunsimha-MP/Building-an-End-to-End-DevOps-Project-on-AWS.git">https://github.com/varunsimha-MP/Building-an-End-to-End-DevOps-Project-on-AWS.git</a></p><p>#DevOps #GitOps #Terraform #Jenkins #ArgoCD #AWS #EKS #Docker #Prometheus #Grafana #CICD #CloudNative #InfrastructureAsCode #Monitoring #Kubernetes #Observability #GitHub #Helm #RBAC #SecretsManagement #StatefulSets #ALB #EFS #Route53 #ACM</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5af2453b3ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a Django Application with MySQL on Kubernetes using Docker Desktop]]></title>
            <link>https://medium.com/@varunsimha90/deploying-a-django-application-with-mysql-on-kubernetes-using-docker-desktop-f99c479c4859?source=rss-055cb88ff8ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/f99c479c4859</guid>
            <category><![CDATA[containerization]]></category>
            <category><![CDATA[kuberntes]]></category>
            <category><![CDATA[docker-desktop]]></category>
            <category><![CDATA[kubernetes-cluster]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Varunsimha M P]]></dc:creator>
            <pubDate>Fri, 18 Apr 2025 12:28:14 GMT</pubDate>
            <atom:updated>2025-04-18T12:29:32.861Z</atom:updated>
            <content:encoded><![CDATA[<h3>📖 Introduction</h3><p>Kubernetes has become the go-to container orchestration platform for modern cloud-native applications. As part of my personal learning journey, I decided to containerize a simple Django application backed by a MySQL database and deploy it on a <strong>local Kubernetes cluster running on Docker Desktop</strong>.</p><p>In this post, I’ll walk you through:</p><ul><li>How I containerized the Django application</li><li>Set up Kubernetes manifests for deployment</li><li>Configured storage with PersistentVolumes</li><li>Managed sensitive data securely with Kubernetes Secrets</li><li>Visualized the architecture</li><li>And finally deployed it successfully on Docker Desktop</li></ul><h3>📌 Project Overview</h3><p>This project consists of two main components:</p><ul><li>📦 <strong>Django Application</strong> — containerized in a pod</li><li>🐬 <strong>MySQL Database</strong> — deployed as a separate pod</li></ul><p>Both are managed by Kubernetes <strong>Deployments</strong> and connected via internal <strong>Services</strong>.</p><p>I also implemented:</p><ul><li><strong>ConfigMaps</strong> for application configuration</li><li><strong>Secrets</strong> for database credentials</li><li><strong>PersistentVolumes (PV)</strong> and <strong>PersistentVolumeClaims (PVC)</strong> for data persistence</li><li>A <strong>StorageClass</strong> pointing to <strong>local storage</strong></li></ul><h3>🔧 Tools &amp; Technologies</h3><ul><li><strong>Docker Desktop</strong> with Kubernetes enabled</li><li><strong>Python Django</strong></li><li><strong>MySQL</strong></li><li><strong>kubectl</strong> CLI</li><li><strong>Docker</strong></li><li><strong>YAML for Kubernetes manifests</strong></li><li><strong>GitHub</strong> for code storage</li></ul><h3>📊 Architecture Diagram</h3><p>Here’s a diagram I designed to visualize the setup:</p><p><strong>Key Components:</strong></p><ul><li><strong>App Pod</strong> (running Django)</li><li><strong>DB Pod</strong> (running MySQL)</li><li><strong>Services</strong> (AppService, DBService)</li><li><strong>ConfigMap</strong></li><li><strong>Secret</strong></li><li><strong>PersistentVolume (PV)</strong></li><li><strong>PersistentVolumeClaim (PVC)</strong></li><li><strong>StorageClass</strong></li><li><strong>Local Storage</strong></li></ul><h3>📦 Setting up the Project</h3><h3>1️⃣ Dockerizing the Django App</h3><p>Created a Dockerfile for Django:</p><pre>FROM python:3.10<br>WORKDIR /app<br>COPY . /app<br>RUN pip install -r requirements.txt<br>CMD [&quot;python&quot;, &quot;manage.py&quot;, &quot;runserver&quot;, &quot;0.0.0.0:8000&quot;</pre><h3>2️⃣ Dockerizing the MySQL Database</h3><p>Used an official MySQL image and passed environment variables for MYSQL_ROOT_PASSWORD, MYSQL_DATABASE, MYSQL_USER, and MYSQL_PASSWORD using a <strong>Secret</strong>.</p><h3>3️⃣ Writing Kubernetes Manifests</h3><p><strong>Key YAML files:</strong></p><ul><li><strong>dbdeployment.yml</strong></li><li><strong>dbdeployment.yml</strong></li><li><strong>appservice.yml</strong></li><li><strong>dbservice.yml</strong></li><li><strong>configmap.yml</strong></li><li><strong>secret.yml</strong></li><li><strong>pv.yml</strong></li><li><strong>pvc.yml</strong></li><li><strong>storageclass.yml</strong></li></ul><h3>🔑 Important Kubernetes Concepts I Applied</h3><p>✅ <strong>Deployments:</strong><br> For managing replica sets and ensuring pod availability.</p><p>✅ <strong>Services:</strong></p><ul><li><strong>ClusterIP</strong> for internal communication between the app pod and the DB pod.</li><li>Could extend to <strong>LoadBalancer</strong> or <strong>Ingress</strong> for external traffic later.</li></ul><p>✅ <strong>ConfigMaps:</strong><br> For passing non-sensitive environment variables like Django settings.</p><p>✅ <strong>Secrets:</strong><br> For securely injecting database credentials into the DB Pod.</p><p>✅ <strong>PersistentVolume &amp; PersistentVolumeClaim:</strong><br> To persist MySQL data even if the pod restarts.</p><p>✅ <strong>StorageClass:</strong><br> Defined a local storage class for the PersistentVolume to dynamically provision storage.</p><h3>💾 How I Deployed on Docker Desktop</h3><p>1️⃣ Enabled Kubernetes on Docker Desktop<br>2️⃣ Ran:</p><pre>kubectl apply -f .</pre><p>These deployed all the YML files from my repo.</p><p>3️⃣ Verified everything</p><pre>kubectl get pods,svc,pv,pvc</pre><p>4️⃣ Accessed the Django app through <strong>AppService</strong>’s NodePort through port forwarding:</p><pre>kubectl port-forward svc/myapp 30080:8000</pre><p>Opened http://localhost:30080 — Django app running!</p><h3>📚 What I Learned</h3><ul><li>How to deploy multi-container apps on Kubernetes</li><li>Managing app configuration and secrets properly</li><li>Persisting data with PV and PVC</li><li>Service discovery inside Kubernetes</li><li>StorageClass management on Docker Desktop</li><li>Hands-on debugging of pod status and logs</li></ul><h3>🔗 Source Code</h3><p>You can find the entire project repo here: <a href="https://github.com/varunsimha-MP/Deploying-a-Django-Application-with-MySQL-on-Kubernetes-using-Docker-Desktop.git">https://github.com/varunsimha-MP/Deploying-a-Django-Application-with-MySQL-on-Kubernetes-using-Docker-Desktop.git</a></p><h3>🚀 Next Steps</h3><ul><li>Adding <strong>load balancing</strong> by hosting in the cloud.</li><li>Implementing <strong>resource requests &amp; limits</strong></li><li>Integrating <strong>CI/CD</strong> pipeline for automated deployment</li><li>Experimenting with <strong>Horizontal Pod Autoscaling (HPA)</strong></li></ul><h3>🙌 Wrapping Up</h3><p>This was a highly insightful hands-on exercise that gave me a deeper understanding of how Kubernetes works beyond the basics. If you’re someone who’s learning Kubernetes, I highly recommend deploying a real-world app like this on your local setup.</p><p>Feel free to fork my repo and give it a shot yourself!</p><p>👉 Would love to hear your feedback and suggestions in the comments below.</p><p><strong>#Kubernetes #Django #Docker #DevOps #Microservices #CloudNative #LearningByDoing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yhvmFTMQcyEWzpFy6lo4sg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f99c479c4859" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>