<?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 Avantika Kakde on Medium]]></title>
        <description><![CDATA[Stories by Avantika Kakde on Medium]]></description>
        <link>https://medium.com/@kakdeavantika52?source=rss-c0469b13bbbf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4U-C9w-9OFDe2ktL</url>
            <title>Stories by Avantika Kakde on Medium</title>
            <link>https://medium.com/@kakdeavantika52?source=rss-c0469b13bbbf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:12:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kakdeavantika52/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[ Understanding Different Types of Pods & Controllers in Kubernetes (K8s)]]></title>
            <link>https://medium.com/@kakdeavantika52/understanding-different-types-of-pods-controllers-in-kubernetes-k8s-c5a7f6f94c6c?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5a7f6f94c6c</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 14:36:44 GMT</pubDate>
            <atom:updated>2026-03-04T14:36:44.365Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with Kubernetes, many beginners think a <em>Pod</em> is the only unit they need to understand.</p><p>But in real-world production environments, Pods are rarely created directly. Instead, Kubernetes uses <strong>controllers and workload resources</strong> to manage Pods efficiently.</p><p>In this article, we’ll explore the major types of Kubernetes workloads that manage Pods and understand when to use each one.</p><h3>1️⃣ Pod — The Smallest Deployable Unit</h3><p>A <strong>Pod</strong> is the smallest and simplest unit in Kubernetes.</p><p>It can contain:</p><ul><li>One container (most common case)</li><li>Multiple tightly coupled containers</li></ul><h3>Key Characteristics:</h3><ul><li>Shares the same network (IP address)</li><li>Shares storage volumes</li><li>Ephemeral by nature (can be destroyed anytime)</li></ul><h3>When to Use:</h3><ul><li>Testing</li><li>Debugging</li><li>Simple experiments</li></ul><p>⚠️ In production, you rarely create standalone Pods because they don’t self-heal.</p><h3>2️⃣ ReplicationController (RC)</h3><p>The <strong>ReplicationController</strong> ensures that a specified number of Pod replicas are running at all times.</p><h3>Features:</h3><ul><li>Maintains desired replica count</li><li>Recreates Pods if they fail</li><li>Basic scaling mechanism</li></ul><h3>Limitation:</h3><ul><li>Uses only equality-based label selectors</li><li>Now largely replaced by ReplicaSet</li></ul><p>It was one of the earliest workload controllers in Kubernetes.</p><h3>3️⃣ ReplicaSet (RS)</h3><p>A <strong>ReplicaSet</strong> is the next generation of ReplicationController.</p><h3>Improvements:</h3><ul><li>Supports set-based label selectors</li><li>Better flexibility in managing Pods</li><li>Ensures high availability</li></ul><p>ReplicaSets maintain a stable set of replica Pods running at any given time.</p><p>⚠️ In practice, you rarely create ReplicaSets directly — they are usually managed by Deployments.</p><h3>4️⃣ Deployment</h3><p>A <strong>Deployment</strong> is the most commonly used workload in Kubernetes.</p><p>It manages ReplicaSets and provides advanced deployment strategies.</p><h3>Features:</h3><ul><li>Rolling updates</li><li>Rollbacks</li><li>Scaling up/down</li><li>Declarative updates</li></ul><h3>Use Case:</h3><ul><li>Stateless applications</li><li>Web servers</li><li>APIs</li><li>Microservices</li></ul><p>Deployments make application updates safe and controlled.</p><h3>5️⃣ StatefulSet</h3><p>A <strong>StatefulSet</strong> is designed for stateful applications.</p><p>Unlike Deployments, Pods in StatefulSets have:</p><ul><li>Stable network identity</li><li>Persistent storage</li><li>Ordered deployment &amp; scaling</li><li>Stable Pod naming (e.g., app-0, app-1)</li></ul><h3>Use Case:</h3><ul><li>Databases (MySQL, PostgreSQL)</li><li>Distributed systems</li></ul><p>StatefulSets ensure data consistency and identity management.</p><h3>6️⃣ DaemonSet</h3><p>A <strong>DaemonSet</strong> ensures that a copy of a Pod runs on every node in the cluster.</p><h3>Features:</h3><ul><li>Automatically adds Pods to new nodes</li><li>Removes Pods when nodes are removed</li></ul><h3>Use Case:</h3><ul><li>Logging agents (Fluentd)</li><li>Monitoring agents</li><li>Node-level services</li></ul><p>DaemonSets are critical for cluster-level operations.</p><h3>7️⃣ Job</h3><p>A <strong>Job</strong> creates Pods that run until completion.</p><p>Unlike Deployments, Jobs are meant for finite tasks.</p><h3>Features:</h3><ul><li>Runs once or multiple times until successful</li><li>Retries on failure</li><li>Tracks completion status</li></ul><h3>Use Case:</h3><ul><li>Batch processing</li><li>Data migration</li><li>One-time scripts</li><li>Backup tasks</li></ul><p>Jobs terminate after successful execution.</p><h3>8️⃣ CronJob</h3><p>A <strong>CronJob</strong> is built on top of Jobs.</p><p>It runs Jobs on a time-based schedule, similar to Linux cron.</p><h3>Features:</h3><ul><li>Time-based scheduling</li><li>Automatic Job creation</li><li>Useful for recurring tasks</li></ul><h3>Example Use Case:</h3><ul><li>Daily database backups</li><li>Log cleanup</li><li>Scheduled report generation</li></ul><p>CronJobs automate recurring cluster tasks.</p><h3>💡 Final Thoughts</h3><p>Understanding these workload types is essential for designing scalable, reliable, and production-ready Kubernetes applications.</p><p>Instead of manually managing Pods, Kubernetes provides intelligent controllers that:</p><ul><li>Self-heal applications</li><li>Scale automatically</li><li>Maintain desired state</li><li>Support rolling updates</li><li>Automate scheduled tasks</li></ul><p>Mastering these concepts is a major step toward becoming a strong DevOps or Cloud Engineer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5a7f6f94c6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building a 3-Tier Application Using Docker Compose]]></title>
            <link>https://medium.com/@kakdeavantika52/building-a-3-tier-application-using-docker-compose-f5a24398c6f5?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5a24398c6f5</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 16:14:33 GMT</pubDate>
            <atom:updated>2026-01-17T16:14:33.915Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern application development, <strong>containerization</strong> has become a core skill for DevOps and Cloud engineers. One of the best ways to understand real-world deployments is by implementing a <strong>3-tier architecture</strong> using <strong>Docker Compose</strong>.</p><p>In this article, I’ll walk you through how I built a <strong>3-Tier Application using Docker, Docker Compose, Dockerfile, and an init.sql script</strong>, following industry best practices.</p><h3>🏗️ What is a 3-Tier Architecture?</h3><p>A <strong>3-tier architecture</strong> separates an application into three logical layers:</p><ol><li><strong>Web Tier</strong> — Handles client requests and serves frontend content</li><li><strong>Application Tier</strong> — Contains backend business logic</li><li><strong>Database Tier</strong> — Stores and manages persistent data</li></ol><p>This separation improves:</p><ul><li>Scalability</li><li>Security</li><li>Maintainability</li><li>Fault isolation</li></ul><h3>🧩 Architecture Overview</h3><p>In this project, each tier runs inside its <strong>own Docker container</strong>, and containers communicate using <strong>isolated Docker networks</strong>.</p><p><strong>Technology Stack:</strong></p><ul><li>Web Tier → <strong>NGINX</strong></li><li>Application Tier → <strong>PHP-FPM</strong></li><li>Database Tier → <strong>MySQL</strong></li><li>Orchestration → <strong>Docker Compose</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rGSiivv3mPg-0_N4zcZUDg.png" /></figure><h3>📁 Project Structure</h3><p>A clean directory structure is crucial for maintainability:</p><pre>app/<br> └── code/   # Backend application logic</pre><pre>web/<br> └── code/        # Frontend files<br> └── config/      # NGINX configuration</pre><pre>db/<br> ├── Dockerfile   # Custom MySQL image<br> └── init.sql     # Database initialization script</pre><p>This structure clearly separates responsibilities for each tier.</p><h3>🐳 Docker Compose Services Explained</h3><h3>🔹 Web Container (NGINX)</h3><ul><li>Serves frontend content</li><li>Forwards requests to the application tier</li></ul><h3>🔹 Application Container (PHP-FPM)</h3><ul><li>Runs backends</li><li>Communicates with the database</li><li>Connected to both frontend and database networks</li></ul><h3>🔹 Database Container (MySQL)</h3><ul><li>Stores persistent application data</li><li>Uses Docker volumes for data persistence</li><li>Automatically initialized using init.sql</li></ul><p>Each service runs independently but communicates through Docker networks.</p><h3>🌐 Docker Networking</h3><p>To enhance security and isolation, I used <strong>multiple Docker networks</strong>:</p><ul><li><strong>webnet</strong> → Communication between Web Tier and Application Tier</li><li><strong>dbnet</strong> → Communication between Application Tier and Database Tier</li></ul><p>This ensures:</p><ul><li>The database is <strong>not directly exposed</strong> to the web layer</li><li>Better network-level security</li></ul><h3>🐬 Database Initialization with init.sql</h3><p>One of the most useful features in this project is <strong>automatic database initialization</strong>.</p><p>When the MySQL container starts:</p><ul><li>The init.sql file is executed automatically</li><li>Tables are created without manual intervention</li></ul><h3>Example init.sql</h3><pre>USE FCT;<br>CREATE TABLE users (<br>    id INT PRIMARY KEY AUTO_INCREMENT,<br>    name VARCHAR(20),<br>    email VARCHAR(100),<br>    website VARCHAR(255),<br>    gender VARCHAR(6),<br>    comment VARCHAR(100)<br>);</pre><p>✅ This ensures the application is <strong>ready immediately after deployment</strong>.</p><h3>🧱 Custom Dockerfile for Database Tier</h3><p>Instead of using a plain MySQL image, I used a <strong>custom Dockerfile</strong> for the database tier.</p><h3>Why use a Dockerfile?</h3><ul><li>Automated database setup</li><li>Consistent environments</li><li>Easy re-deployment</li><li>Production-like workflow</li></ul><p>This approach is very common in real-world DevOps projects.</p><h3>🚀 Running the Application</h3><p>Start all services using Docker Compose:</p><pre>docker-compose up -d</pre><p>Docker Compose will:</p><ul><li>Create networks</li><li>Build images</li><li>Start all containers in the correct order</li></ul><h3>🌐 Accessing the Application</h3><p>Once the containers are running, access the application in your browser:</p><pre>http://3.3.3.3/signup</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DrrJnUTp7mwV61mjz6YoNQ.png" /></figure><h3>✅ Key Takeaways</h3><p>Through this project, I learned:</p><ul><li>How to design a <strong>3-tier architecture</strong></li><li>How to use <strong>Docker Compose</strong> for multi-container applications</li><li>How to isolate services using <strong>Docker networks</strong></li><li>How to initialize databases using <strong>init.sql</strong></li><li>How Docker volumes ensure <strong>persistent storage</strong></li></ul><h3>🎯 Final Thoughts</h3><p>This project closely resembles <strong>real-world DevOps deployments</strong> and is a great hands-on exercise for anyone learning:</p><ul><li>Docker &amp; Docker Compose</li><li>Container networking</li><li>Backend deployment patterns</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5a24398c6f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: Complete Guide (Theory, Architecture & Commands)]]></title>
            <link>https://medium.com/@kakdeavantika52/docker-complete-guide-theory-architecture-commands-ed386b4af34f?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed386b4af34f</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 11:36:27 GMT</pubDate>
            <atom:updated>2026-01-05T11:36:27.854Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Docker is an open-source containerization platform that allows developers and DevOps engineers to build, ship, and run applications consistently across different environments. It solves the common problem of <em>“It works on my machine”</em> by packaging applications along with their dependencies into lightweight containers.</p><p>Docker is widely used in DevOps, CI/CD pipelines, cloud computing, and microservices architectures.</p><h3>What is Docker? (Theory)</h3><p>Docker enables <strong>containerization</strong>, which means running applications in isolated environments called <strong>containers</strong>.</p><h3>Key Points:</h3><ul><li>Containers include application code, runtime, libraries, and dependencies</li><li>Containers run on a shared OS kernel (lighter than VMs)</li><li>Fast startup and less resource consumption</li><li>Platform-independent</li></ul><h3>Why Docker?</h3><ul><li>Faster deployment</li><li>Consistency across environments</li><li>Easy scalability</li><li>Efficient resource utilization</li><li>Ideal for microservices</li></ul><h3>Docker vs Virtual Machine</h3><p>DockerVirtual MachineLightweightHeavyweightUses host OS kernelHas separate OSFaster startupSlow startupLess resource usageMore resource usage</p><h3>Docker Architecture</h3><p>Docker follows a <strong>client-server architecture</strong>.</p><h3>Components of Docker Architecture</h3><h4>1. Docker Client</h4><ul><li>Used by users to interact with Docker</li><li>Commands like docker run, docker build</li><li>Communicates with Docker Daemon</li></ul><h4>2. Docker Daemon (dockerd)</h4><ul><li>Runs on the host machine</li><li>Responsible for building, running, and managing containers</li><li>Manages images, containers, networks, and volumes</li></ul><h4>3. Docker Images</h4><ul><li>Read-only templates</li><li>Used to create containers</li><li>Built using Dockerfile</li></ul><h4>4. Docker Containers</h4><ul><li>Running instance of Docker Image</li><li>Isolated environment</li></ul><h4>5. Docker Registry</h4><ul><li>Stores Docker images</li><li>Docker Hub is the default public registry</li><li>Docker Architecture Flow</li></ul><pre>Docker Client → Docker Daemon → Docker Image → Docker Container</pre><h3>Docker Installation (Linux — Ubuntu)</h3><pre>sudo apt update<br>sudo apt install docker.io -y<br>sudo systemctl start docker<br>sudo systemctl enable docker</pre><p>Check Docker version:</p><pre>docker --version</pre><h3>Docker Basic Commands</h3><pre>docker info<br>docker version</pre><h3>Docker Images</h3><pre>docker images           # List images<br>docker pull nginx       # Download image<br>docker rmi image_id     # Remove image</pre><h3>Docker Containers</h3><pre>docker ps               # Running containers<br>docker ps -a            # All containers<br>docker run nginx        # Run container<br>docker stop container_id<br>docker rm container_id</pre><h3>Run Container with Options</h3><pre>docker run -d -p 8080:80 --name mynginx nginx</pre><ul><li>-d : detached mode</li><li>-p : port mapping</li><li>--name : container name</li></ul><h3>Docker Use Cases</h3><ul><li>CI/CD pipelines</li><li>Microservices</li><li>Cloud-native applications</li><li>Dev/Test environments</li><li>Application isolation</li></ul><h3>Advantages of Docker</h3><ul><li>Lightweight and fast</li><li>Easy deployment</li><li>Scalable</li><li>Portable</li><li>Supports automation</li></ul><h3>Disadvantages of Docker</h3><ul><li>Security risks if misconfigured</li><li>Not suitable for GUI-based apps</li><li>Requires container knowledge</li></ul><h3>Conclusion</h3><p>Docker is a powerful containerization tool that plays a crucial role in modern DevOps practices. Understanding Docker theory, architecture, and commands helps in building scalable, reliable, and portable applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed386b4af34f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Automating CI/CD for a Python Flask Application using Jenkins and GitHub Webhooks]]></title>
            <link>https://medium.com/@kakdeavantika52/automating-ci-cd-for-a-python-flask-application-using-jenkins-and-github-webhooks-f2a2332b7e08?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2a2332b7e08</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Wed, 12 Nov 2025 08:09:12 GMT</pubDate>
            <atom:updated>2025-11-12T08:09:12.021Z</atom:updated>
            <content:encoded><![CDATA[<p>Delivering software efficiently and reliably is what modern DevOps is all about.<br> In this article, we’ll walk through how to <strong>build a fully automated CI/CD pipeline</strong> for a <strong>Python Flask application</strong> using <strong>Jenkins</strong> and <strong>GitHub Webhooks</strong> — from code push to deployment with zero manual steps.</p><h3>🧩 Overview</h3><p>We’ll set up a <strong>Continuous Integration / Continuous Deployment (CI/CD)</strong> pipeline that:</p><p>✅ Automatically builds and tests the Flask application<br> ✅ Deploys updates to the server after every successful build<br> ✅ Runs completely hands-free using Jenkins automation</p><p>This setup ensures faster releases, fewer manual errors, and seamless collaboration — perfect for any DevOps-ready project.</p><h3>🧰 Prerequisites</h3><p>Before we start, make sure you have the following:</p><ul><li><strong>Python 3.x</strong></li><li><strong>Flask</strong> (Python framework)</li><li><strong>Git</strong> and <strong>GitHub repository</strong></li><li><strong>Jenkins</strong> (running on an EC2 or local machine)</li><li><strong>Webhook access</strong> between GitHub and Jenkins</li></ul><h3>🧩 Flask Application Structure</h3><p>Your project structure should look like this:</p><pre>python-app/<br>│<br>├── app.py<br>├── requirements.txt<br>├── Jenkinsfile<br>└── README.md</pre><h3>Example</h3><h3>app.py</h3><p>A simple yet elegant Flask web app that confirms a successful deployment:</p><pre>from flask import Flask<br>import osfrom flask import Flask<br>import osfrom flask import Flask<br>import os<br><br>app = Flask(__name__)<br>@app.route(&#39;/&#39;)<br>def home():<br>    return &#39;&#39;&#39;<br>    &lt;html&gt;<br>        &lt;head&gt;<br>            &lt;title&gt;🚀 Flask CI/CD Deployment&lt;/title&gt;<br>            &lt;style&gt;<br>                body { font-family: &#39;Poppins&#39;, sans-serif; background: linear-gradient(135deg, #667eea, #764ba2); color: white; text-align: center; padding-top: 100px; }<br>                h1 { font-size: 2.8em; margin-bottom: 10px; }<br>                p { font-size: 1.3em; }<br>                .btn { display: inline-block; padding: 10px 25px; margin-top: 20px; background-color: #ff9f43; color: #fff; border-radius: 8px; text-decoration: none; }<br>                .btn:hover { background-color: #ff6b6b; }<br>            &lt;/style&gt;<br>        &lt;/head&gt;<br>        &lt;body&gt;<br>            &lt;h1&gt;✅ Successfully Deployed Flask App through Jenkins!&lt;/h1&gt;<br>            &lt;p&gt;Automated with &lt;b&gt;CI/CD Pipeline&lt;/b&gt; 💻 using &lt;b&gt;Jenkins + Docker&lt;/b&gt; 🚀&lt;/p&gt;<br>            &lt;a href=&quot;/hi&quot; class=&quot;btn&quot;&gt;Say Hi 👋&lt;/a&gt;<br>        &lt;/body&gt;<br>    &lt;/html&gt;<br>    &#39;&#39;&#39;<br>@app.route(&#39;/hi&#39;)<br>def hi():<br>    return &#39;&#39;&#39;<br>    &lt;html&gt;<br>        &lt;head&gt;<br>            &lt;title&gt;👋 Flask Greetings&lt;/title&gt;<br>            &lt;style&gt;<br>                body { font-family: &#39;Poppins&#39;, sans-serif; background: linear-gradient(135deg, #43cea2, #185a9d); color: white; text-align: center; padding-top: 120px; }<br>                h1 { font-size: 3em; }<br>                p { font-size: 1.2em; }<br>            &lt;/style&gt;<br>        &lt;/head&gt;<br>        &lt;body&gt;<br>            &lt;h1&gt;👋 Hi There!&lt;/h1&gt;<br>            &lt;p&gt;Welcome to your Flask + Jenkins + Docker environment 🌍&lt;/p&gt;<br>            &lt;p&gt;&lt;a href=&quot;/&quot;&gt;Back to Home&lt;/a&gt;&lt;/p&gt;<br>        &lt;/body&gt;<br>    &lt;/html&gt;<br>    &#39;&#39;&#39;<br>if __name__ == &quot;__main__&quot;:<br>    port = int(os.environ.get(&#39;PORT&#39;, 5000))<br>    app.run(debug=True, host=&#39;0.0.0.0&#39;, port=port)</pre><p><strong>requirements.txt</strong></p><pre>flask</pre><h3>🧾 Step 1: Create a GitHub Repository</h3><p>Create a new repository:<br> <strong>Name:</strong> python-app<br> <strong>Branch:</strong> main</p><p>Push your code and Jenkinsfile to this repository — Jenkins will fetch it directly from here.</p><h3>🔐 Step 2: Add Credentials in Jenkins</h3><p>Navigate to:<br> <strong>Manage Jenkins → Credentials → System → Global</strong></p><p>This key allows Jenkins to securely connect to your EC2 instance for deployment.</p><h3>⚙️ Step 3: Create a Jenkins Pipeline Job</h3><p>Go to:<br> <strong>Jenkins → New Item → Pipeline</strong></p><h3>🧠 Step 4: Jenkinsfile Configuration</h3><p>Here’s the pipeline definition that automates cloning, setup, and deployment:</p><pre><br>pipeline {<br>    agent any<br><br>    environment {<br>        SSH_CRED = &#39;python-app-key&#39;<br>        SERVER_IP = &#39;13.234.76.204&#39;<br>        REMOTE_USER = &#39;ubuntu&#39;<br>        APP_DIR = &#39;/home/ubuntu/pythonapp&#39;<br>    }<br><br>    stages {<br>        stage(&#39;Clone Repo&#39;) {<br>            steps {<br>                git url: &#39;https://github.com/avantikakakde/python-App.git&#39;, branch: &#39;main&#39;<br>            }<br>        }<br><br>        stage(&#39;Deploy to Server&#39;) {<br>            steps {<br>                sshagent(credentials: [&quot;${SSH_CRED}&quot;]) {<br>                    sh &#39;&#39;&#39;<br>                        ssh -o StrictHostKeyChecking=no ${REMOTE_USER}@${SERVER_IP} &quot;mkdir -p ${APP_DIR}&quot;<br>                        scp -r Dockerfile README.md app.py requirements.txt ${REMOTE_USER}@${SERVER_IP}:${APP_DIR}/<br>                    &#39;&#39;&#39;<br>                }<br>            }<br>        }<br><br>        stage(&#39;Install &amp; Run App&#39;) {<br>            steps {<br>                sshagent([&quot;${SSH_CRED}&quot;]) {<br>                    sh &quot;&quot;&quot;<br>                        ssh -o StrictHostKeyChecking=no ${REMOTE_USER}@${SERVER_IP} &#39;<br>                            sudo apt update &amp;&amp;<br>                            sudo apt install -y python3-venv python3-pip &amp;&amp;<br>                            cd ${APP_DIR} &amp;&amp;<br>                            python3 -m venv venv &amp;&amp;<br>                            source venv/bin/activate &amp;&amp;<br>                            pip install --upgrade pip &amp;&amp;<br>                            pip install -r requirements.txt &amp;&amp;<br>                            nohup python3 app.py --host=0.0.0.0 &gt; app.log 2&gt;&amp;1 &amp;<br>                            exit 0<br>                        &#39;<br>                    &quot;&quot;&quot;<br>                }<br>            }<br>        }<br>    }<br>}</pre><h3>💾 Step 5: Push Code and Trigger Jenkins</h3><pre>git init<br>git add .<br>git commit -m &quot;Initial commit&quot;<br>git branch -M main<br>git remote add origin https://github.com/&lt;your-username&gt;/python-flask-cicd.git<br>git push -u origin main</pre><p>Once the code is pushed, the <strong>GitHub Webhook</strong> triggers Jenkins automatically.</p><p>Jenkins will:</p><ol><li>Pull the latest code</li><li>Install dependencies</li><li>Build and deploy the Flask app to the EC2 instance</li></ol><h3>🌐 Step 6: Access the Application</h3><p>Visit the deployed app in your browser:</p><pre>http://&lt;TARGET-SERVER-PUBLIC-IP&gt;:5000</pre><p>You should see your styled Flask webpage confirming a successful deployment ✅</p><h3>🏁 Conclusion</h3><p>By combining <strong>Jenkins</strong> and <strong>GitHub Webhooks</strong>, we’ve created a <strong>fully automated CI/CD pipeline</strong> for a Python Flask application.</p><p>Every push to GitHub triggers the entire process — <strong>build → test → deploy</strong> — making software delivery faster, smoother, and more reliable.</p><p>This pipeline demonstrates how simple yet powerful DevOps automation can transform your development workflow. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2a2332b7e08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Zero-Touch Deployment: Building a Node.js CI/CD Pipeline with Jenkins and GitHub Webhooks]]></title>
            <link>https://medium.com/@kakdeavantika52/zero-touch-deployment-building-a-node-js-ci-cd-pipeline-with-jenkins-and-github-webhooks-01087069c1c9?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/01087069c1c9</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Sat, 08 Nov 2025 13:18:18 GMT</pubDate>
            <atom:updated>2025-11-08T13:18:18.641Z</atom:updated>
            <content:encoded><![CDATA[<p>This guide walks you through setting up a <strong>fully automated CI/CD pipeline</strong> for a Node.js application. We’ll leverage <strong>Jenkins</strong> as our automation engine and <strong>GitHub Webhooks</strong> to trigger the process instantly. By the end, every code push will result in a seamless, zero-manual-step deployment to a target server.</p><p>If you want to master DevOps automation and continuous delivery, this project is your definitive starting point.</p><h3>💡 Project Goal: Automation from Commit to Code</h3><p>The core purpose of this setup is to achieve true <strong>Continuous Integration (CI)</strong> and <strong>Continuous Deployment (CD)</strong>.</p><h3>The Automated Workflow:</h3><p><strong>ComponentRole in the PipelineGitHub Push</strong>The single trigger point for the entire CI/CD process.<strong>GitHub Webhook</strong>Instantly notifies Jenkins of the new code commit.<strong>Jenkins</strong>Orchestrates the build, dependency installation, and deployment.<strong>SSH Agent</strong>Secures the connection for file transfer and remote command execution.<strong>PM2</strong>Manages the Node.js application process, ensuring high availability and easy restarts.</p><h3>⚙️ Tech Stack &amp; Prerequisites</h3><p>To follow this tutorial, you’ll need the following tools and services configured:</p><ul><li><strong>Version Control:</strong> <strong>Node.js</strong> Application code hosted on <strong>GitHub</strong>.</li><li><strong>Automation Server:</strong> <strong>Jenkins</strong> installed on a Linux (Ubuntu) EC2 instance.</li><li><strong>Target Server:</strong> A separate <strong>Ubuntu</strong> EC2 instance where the Node.js app runs.</li><li><strong>Process Manager:</strong> <strong>PM2</strong> installed globally on the Target Server.</li><li><strong>Jenkins Plugins:</strong> Pipeline, Git, GitHub, and critically, <strong>SSH Agent</strong>.</li></ul><h3>🛠️ Step 1: Setting Up the Infrastructure (AWS EC2)</h3><p>We begin by provisioning two Linux servers on a platform like AWS EC2, ensuring they are correctly secured via their respective Security Groups.</p><h3>1. Launching and Configuring the Servers</h3><ul><li><strong>Jenkins Server:</strong> Open <strong>Port 8080</strong> for accessing the Jenkins web interface.</li><li><strong>Target Server (Node Host):</strong> Open <strong>Port 22</strong> (SSH) and <strong>Port 3000</strong> (for our running Node.js application).</li></ul><h3>2. Installing Application Dependencies on the Target Server</h3><p>Before deployment, the target machine must have Node.js and PM2 installed. SSH into your Target Server and run:</p><p>Bash</p><pre>sudo apt update<br>sudo apt install nodejs npm -y<br>sudo npm install -g pm2</pre><h3>🔗 Step 2: GitHub Repository and Webhook Configuration</h3><h3>1. Create the Repository</h3><p>Create a new GitHub repository, for example, node-app-deploy-cicd, and use the main branch.</p><h3>2. Configure the Webhook</h3><p>The webhook is the “tripwire” that tells Jenkins when new code lands.</p><p>Navigate to <strong>Settings → Webhooks</strong> in your GitHub repository and add a new webhook:</p><ul><li><strong>Payload URL:</strong> http://&lt;JENKINS-SERVER-PUBLIC-IP&gt;:8080/github-webhook/</li><li><strong>Content Type:</strong> application/json</li><li><strong>Which events should trigger this webhook?</strong> Select <strong>“Just the push event”</strong>.</li></ul><h3>🔐 Step 3: Securely Managing Credentials in Jenkins</h3><p>Jenkins needs a secure way to log into the Target Server via SSH to execute the deployment commands. We’ll use the <strong>SSH Agent</strong> plugin via credentials.</p><ul><li>Go to <strong>Manage Jenkins → Credentials → System → Global credentials</strong>.</li><li><strong>Add New Credentials</strong> ( SSH Username with Private Key).</li><li><strong>ID:</strong> node-app-key (This ID is crucial—it&#39;s used in the Jenkinsfile).</li><li><strong>Username:</strong> ubuntu</li><li><strong>Private Key:</strong> Paste your EC2 private key here.</li></ul><h3>⚙️ Step 4: Creating the Jenkins Pipeline Job</h3><p>Now we create the job that will be triggered by GitHub.</p><ul><li>In Jenkins, click <strong>New Item</strong> and create a <strong>Pipeline</strong> job named node-app-deploy-cicd.</li><li>In the job configuration:</li><li>Under <strong>Build Triggers</strong>, check <strong>✅ GitHub hook trigger for GITScm polling</strong>.</li><li>Under <strong>Pipeline</strong> section:</li><li><strong>Definition:</strong> Select <strong>Pipeline script from SCM</strong>.</li><li><strong>SCM:</strong> Git.</li><li><strong>Repository URL:</strong> (Paste your GitHub repository URL).</li><li><strong>Branch:</strong> main.</li><li><strong>Script Path:</strong> Jenkinsfile (This is the file we will push to the repo).</li></ul><h3>🧠 Step 5: The Jenkinsfile Pipeline Script</h3><p>The <strong>Jenkinsfile</strong> defines our deployment logic. It uses the sshagent block to inject our private key credential for secure file transfer (scp) and remote command execution (ssh).</p><p><strong>Important:</strong> <strong>Replace the placeholder values</strong> (SERVER_IP, REPO_URL) in the environment block with your actual details.</p><p>Groovy</p><pre>pipeline {<br>    agent any<br>    environment {<br>        // !!! REPLACE THESE VALUES WITH YOUR CONFIGURATION !!!<br>        SERVER_IP      = &#39;13.233.116.153&#39;    // Your Target Server IP<br>        SSH_CREDENTIAL = &#39;node-app-key&#39;      // Must match the ID from Step 3<br>        REPO_URL       = &#39;https://github.com/avantikakakde/node-app.git&#39;<br>        BRANCH         = &#39;main&#39;<br>        REMOTE_USER    = &#39;ubuntu&#39;<br>        REMOTE_PATH    = &#39;/home/ubuntu/node-app&#39; // Target directory<br>    }<br>stages {<br>        stage(&#39;Clone Repository&#39;) {<br>            steps {<br>                git branch: &quot;${BRANCH}&quot;, url: &quot;${REPO_URL}&quot;<br>            }<br>        }<br>        stage(&#39;Upload Files to EC2&#39;) {<br>            steps {<br>                // Use the configured SSH key to securely copy files<br>                sshagent([SSH_CREDENTIAL]) {<br>                    sh &quot;&quot;&quot;<br>                        # Create directory and copy files recursively<br>                        ssh -o StrictHostKeyChecking=no ${REMOTE_USER}@${SERVER_IP} &#39;mkdir -p ${REMOTE_PATH}&#39;<br>                        scp -o StrictHostKeyChecking=no -r * ${REMOTE_USER}@${SERVER_IP}:${REMOTE_PATH}/<br>                    &quot;&quot;&quot;<br>                }<br>            }<br>        }<br>        stage(&#39;Install Dependencies &amp; Start App&#39;) {<br>            steps {<br>                // Execute remote commands via SSH<br>                sshagent([SSH_CREDENTIAL]) {<br>                    sh &quot;&quot;&quot;<br>                        ssh -o StrictHostKeyChecking=no ${REMOTE_USER}@${SERVER_IP} &#39;<br>                            cd ${REMOTE_PATH} &amp;&amp;<br>                            npm install &amp;&amp;<br>                            # Start or restart the app using PM2<br>                            pm2 start app.js --name node-app || pm2 restart node-app<br>                        &#39;<br>                    &quot;&quot;&quot;<br>                }<br>            }<br>        }<br>    }<br>    post {<br>        success {<br>            echo &#39;✅ Application deployed successfully! Check the target server.&#39;<br>        }<br>        failure {<br>            echo &#39;❌ Deployment failed. Review the console output.&#39;<br>        }<br>    }<br>}</pre><h3>💾 Step 6: The Final Push and Automatic Deployment</h3><p>The pipeline is set! Now, upload your Node.js application files (including an app.js and package.json) and the Jenkinsfile to your local clone.</p><p>Perform the final push:</p><p>git add .<br>git commit -m &quot;Initial Jenkinsfile and application code&quot;<br>git push -u origin main</p><p>As soon as the code lands on GitHub, the <strong>webhook fires</strong>, the <strong>Jenkins job starts</strong>, and your application is <strong>deployed</strong> and <strong>running</strong> on your target server.</p><h3>🌐 Step 7: Verify Your Live Application</h3><p>Once Jenkins reports a successful build, open your browser and access your application:</p><pre>http://&lt;TARGET-SERVER-PUBLIC-IP&gt;:3000</pre><p>You now have a robust, high-availability, and fully automated deployment process!</p><h3>🏁 Conclusion</h3><p>You’ve successfully built a powerful <strong>CI/CD pipeline</strong> that takes code from GitHub and pushes it live using Jenkins, SSH, and PM2. This setup is fundamental for any modern development team, ensuring rapid iterations, consistency, and stability in deployment.</p><p>This foundational pipeline can easily be extended to include unit tests, security scans, and environment-specific configurations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01087069c1c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Automating Node.js Deployment on Jenkins Using Freestyle Projects]]></title>
            <link>https://medium.com/@kakdeavantika52/automating-node-js-deployment-on-jenkins-using-freestyle-projects-a21b26fadcf6?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a21b26fadcf6</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 06:52:36 GMT</pubDate>
            <atom:updated>2025-11-07T06:52:36.253Z</atom:updated>
            <content:encoded><![CDATA[<p>Continuous deployment is at the heart of modern DevOps. Automating your <strong>Node.js application deployment</strong> with <strong>Jenkins</strong> helps you deliver updates <strong>quickly, reliably, and consistently</strong> — no more manual restarts or dependency headaches.</p><p>In this post, you’ll learn how to set up <strong>Jenkins Freestyle Projects</strong> to automatically pull your Node.js code from GitHub, install dependencies, and deploy the app using <strong>PM2</strong> on an <strong>AWS EC2 instance</strong> (or any Linux server).</p><h3>🧩 Project Overview</h3><p>We’ll build a simple CI/CD setup using <strong>Jenkins Freestyle Jobs</strong> that:</p><ol><li>Installs Node.js, npm, and PM2</li><li>Pulls the latest code from GitHub</li><li>Installs dependencies (npm install)</li><li>Deploys the Node.js app using PM2</li></ol><p>By the end, you’ll have an automated deployment pipeline ready to use for any Node.js project.</p><h3>⚙️ Prerequisites</h3><p>Before we dive in, make sure you have the following ready:</p><ul><li>🖥️ <strong>Ubuntu / Linux Server</strong></li><li>☁️ <strong>Jenkins installed and running</strong></li><li>🟢 <strong>Node.js and npm installed</strong></li><li>🔥 <strong>PM2 process manager</strong> (for managing your app processes)</li><li>sudo npm install -g pm2</li><li>🔑 A <strong>GitHub repository</strong> containing your Node.js project</li><li>🔗 Jenkins access to your GitHub repo (via HTTPS or SSH key)</li></ul><h3>⚙️ Setting Up Jenkins Freestyle Project</h3><p>We’ll create <strong>four Jenkins Freestyle Jobs</strong> to automate our entire deployment pipeline.</p><ul><li><strong>Job 1:</strong> 01-setup-env → Install Node.js, npm, and PM2</li><li><strong>Job 2:</strong> 02-node-pull → Pull the latest source code from Git</li><li><strong>Job 3:</strong> 03-install-dependency → Install dependencies (npm install)</li><li><strong>Job 4:</strong> 04-deploy-node → Deploy/start the Node.js app using PM2</li></ul><h3>🧱 Job 1: Setup Environment</h3><p><strong>Steps:</strong></p><ol><li>Click <strong>New Item</strong></li><li>Enter name: 01-setup-env</li><li>Choose <strong>Freestyle project</strong>, then click <strong>OK</strong></li></ol><h3>🧩 Build Steps → Execute Shell</h3><pre>sudo apt install nodejs -y<br>sudo apt install npm -y<br>sudo npm install -g pm2</pre><h3>➕ Post-build Action</h3><ul><li>Go to <strong>Add Post-build Action → Build Other Projects</strong></li><li>Enter downstream project name: 02-node-pull</li><li>Click <strong>Save</strong></li></ul><h3>🧩 Job 2: Pull Repo from GitHub</h3><ol><li>Click <strong>New Item</strong></li><li>Enter name: 02-node-pull</li><li>Choose <strong>Freestyle project</strong>, then click <strong>OK</strong></li><li>Scroll to <strong>Source Code Management → Git</strong></li><li>Add your GitHub repo URL (for example):</li></ol><ul><li><a href="https://github.com/iamtruptimane/node-js-app-CICD.git">https://github.com/iamtruptimane/node-js-app-CICD.git</a></li></ul><p>Branch: main</p><h3>➕ Post-build Action</h3><ul><li>Add downstream project: 03-install-dependency</li><li>Click <strong>Save</strong></li></ul><h3>⚡ Job 3: Install Dependencies</h3><ol><li>Click <strong>New Item</strong></li><li>Enter name: 03-install-dependency</li><li>Choose <strong>Freestyle project</strong>, then click <strong>OK</strong></li></ol><h3>🧩 Build Steps → Execute Shell</h3><pre>cd /var/lib/jenkins/workspace/02-node-pull<br>sudo npm install</pre><h3>➕ Post-build Action</h3><ul><li>Add downstream project: 04-deploy-node</li><li>Click <strong>Save</strong></li></ul><h3>🚀 Job 4: Deploy Node.js Application</h3><ol><li>Click <strong>New Item</strong></li><li>Enter name: 04-deploy-node</li><li>Choose <strong>Freestyle project</strong>, then click <strong>OK</strong></li></ol><h3>🧩 Build Steps → Execute Shell</h3><pre>cd /var/lib/jenkins/workspace/02-node-pull<br>pm2 start app.js --name node-app || pm2 restart node-app</pre><h3>▶️ Running the Pipeline</h3><p>Now it’s time to see it in action 🎯</p><ol><li>Go to <strong>Jenkins Dashboard</strong></li><li>Click on 01-setup-env</li><li>Click <strong>Build Now</strong></li></ol><p>This will automatically trigger all downstream jobs in order:</p><pre>01-setup-env → Install Node.js, npm, and PM2<br>02-node-pull → Pull latest code from GitHub<br>03-install-dependency → Install dependencies<br>04-deploy-node → Deploy/start app using PM2</pre><p>🌐 Once done, open your browser and visit:</p><pre>http://&lt;Public-IP&gt;:3000</pre><h3>🧠 Conclusion</h3><p>By setting up <strong>Node.js deployment on Jenkins using Freestyle Projects</strong>, you’ve created a <strong>simple yet powerful CI/CD pipeline</strong> that automates everything from code pull to deployment.</p><p>This setup:</p><p>✅ Saves time<br> ✅ Reduces manual errors<br> ✅ Ensures continuous and consistent deployments</p><p>While Freestyle projects are great for beginners, you can later migrate to <strong>Jenkins Pipeline (Jenkinsfile)</strong> for even more flexibility, scalability, and version control.</p><p>With automation in place, you can now focus on <strong>building features</strong> — not deploying them manually. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a21b26fadcf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“From Manual to Automated: My Journey with Jenkins”]]></title>
            <link>https://medium.com/@kakdeavantika52/from-manual-to-automated-my-journey-with-jenkins-29f1062ded09?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/29f1062ded09</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 18:22:57 GMT</pubDate>
            <atom:updated>2025-10-15T18:22:57.715Z</atom:updated>
            <content:encoded><![CDATA[<p>Introduce Jenkins briefly and why it’s useful:</p><blockquote><em>“In today’s fast-paced development world, automation is key. Jenkins is a powerful tool that helps developers automate builds, tests, and deployments, making continuous integration and continuous delivery (CI/CD) a reality.”</em></blockquote><h3>What is Jenkins?</h3><ul><li>Open-source automation server.</li><li>Helps automate repetitive tasks in software development.</li><li>Supports building, testing, and deploying code continuously.</li></ul><h3>Key Features</h3><ul><li><strong>Easy Setup:</strong> Quick installation on Linux, Windows, or Mac.</li><li><strong>Plugins:</strong> Thousands of plugins for Git, Docker, Slack, and more.</li><li><strong>Pipeline as Code:</strong> Define CI/CD pipelines using code for repeatability.</li><li><strong>Extensible:</strong> Supports custom scripts and tools.</li></ul><h3>How Jenkins Works (Simple Example)</h3><ol><li><strong>Install Jenkins</strong> on your server.</li><li><strong>Create a Job</strong> (Freestyle or Pipeline) in the Jenkins dashboard.</li><li><strong>Add Build Steps</strong> (e.g., shell commands like mkdir /var/lib/jenkins/workspace/first-dir).</li><li><strong>Run the Job</strong> and check the console output.</li><li><strong>Automate Deployments</strong> after build and test stages.</li></ol><h3>Common Use Cases</h3><ul><li>Automating builds for GitHub or GitLab repositories.</li><li>Running tests automatically after each commit.</li><li>Deploying applications to staging/production servers.</li><li>Sending notifications to Slack or email on build status.</li></ul><h3>Tips &amp; Best Practices</h3><ul><li>Use <strong>least privilege</strong> for Jenkins user to avoid permission issues.</li><li>Keep Jenkins <strong>plugins updated</strong>.</li><li>Define <strong>Pipeline as Code</strong> for versioning and reproducibility.</li><li>Monitor <strong>build logs</strong> to troubleshoot failures.</li></ul><h3>Conclusion</h3><blockquote><em>“Jenkins takes the pain out of manual deployments and testing. With its rich plugin ecosystem and automation capabilities, it’s a must-have tool for any developer looking to implement CI/CD. Start small, experiment, and scale your pipelines over time.”</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29f1062ded09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Bitbucket]]></title>
            <link>https://medium.com/@kakdeavantika52/understanding-bitbucket-22bdc8913f41?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/22bdc8913f41</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Mon, 13 Oct 2025 18:28:47 GMT</pubDate>
            <atom:updated>2025-10-13T18:28:47.582Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Bitbucket?</h3><p><strong>Bitbucket</strong> is a <strong>Git-based source code management (SCM)</strong> platform developed by <strong>Atlassian</strong>, the same company behind Jira and Confluence.</p><p>It allows teams to <strong>store, manage, and collaborate</strong> on code efficiently — just like GitHub or GitLab.</p><p>Initially supporting <strong>Mercurial</strong>, Bitbucket now fully focuses on <strong>Git repositories</strong>.</p><h3>⚙️ Why Use Bitbucket?</h3><p>Bitbucket is widely used for <strong>private repositories</strong> and <strong>team collaboration</strong>, especially in organizations using <strong>Atlassian tools</strong>.</p><h3>Key Features:</h3><ul><li>✅ <strong>Free private repositories</strong> (for small teams)</li><li>🔗 <strong>Integration with Jira &amp; Trello</strong></li><li>⚙️ <strong>Built-in CI/CD pipelines</strong></li><li>🔒 <strong>Granular access control</strong></li><li>🌐 <strong>Supports both Git and Mercurial (legacy)</strong></li></ul><p>Bitbucket is best suited for enterprise teams using Jira or Trello for project management.</p><h3>How Bitbucket Fits in the Dev Workflow</h3><p>A typical Bitbucket workflow:</p><ol><li><strong>Create a Repository</strong> — Store your project code.</li><li><strong>Clone it Locally</strong> — Work on your system using Git.</li><li><strong>Push Changes</strong> — Send your updates to the remote repository.</li><li><strong>Create Pull Requests</strong> — Collaborate and review code with your team.</li><li><strong>Integrate with Jira</strong> — Track commits and issues seamlessly.</li></ol><h3>🔑 Setting Up SSH Key in Bitbucket</h3><p>SSH keys let you <strong>connect securely</strong> to Bitbucket without typing your username/password every time.</p><p>Here’s how to set it up 👇</p><h3>🪜 Step-by-Step Guide:</h3><h4>Step 1 — Generate SSH Key</h4><p>Open your terminal and run:</p><pre>ssh-keygen -t rsa</pre><p>Press <strong>Enter</strong> for all prompts (to accept default paths).</p><h4>Step 2— Copy the SSH Public Key</h4><pre>cat id_rsa.pub  </pre><p>Copy the output (your <strong>public key</strong>) from the terminal.</p><h4>Step 4 — Add SSH Key to Bitbucket</h4><ol><li>Go to <strong>Bitbucket Settings → SSH Keys</strong></li><li>Click <strong>Add Key</strong></li><li>Paste your copied key</li><li>Give it a name</li></ol><p>✅ Done! You can now securely clone or push your repos using SSH.</p><h3>💻 Example: Cloning a Repo via SSH</h3><pre>git clone git@bitbucket.org:your-workspace/your-repo.git</pre><p>You’ll no longer need to enter your credentials every time you push code.</p><h3>🚀 Wrapping Up</h3><p>Bitbucket may not be as trendy as GitHub, but it’s <strong>a powerful tool</strong> for teams that value <strong>Jira integration</strong>, <strong>private collaboration</strong>, and <strong>built-in CI/CD</strong>.</p><p>If you’re starting your journey with Git tools — understanding <strong>GitHub, GitLab, and Bitbucket</strong> will help you pick the right platform for your workflow.</p><h3>✍️ Final Thoughts</h3><ul><li>Use <strong>GitHub</strong> → if you want <strong>community + open-source exposure</strong></li><li>Use <strong>GitLab</strong> → if you want <strong>DevOps automation + self-hosting</strong></li><li>Use <strong>Bitbucket</strong> → if you’re using <strong>Jira/Trello + team-focused repos</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22bdc8913f41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Repository Mirroring — GitLab → GitHub]]></title>
            <link>https://medium.com/@kakdeavantika52/repository-mirroring-gitlab-github-b8ad74fbf8e5?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8ad74fbf8e5</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 19:59:53 GMT</pubDate>
            <atom:updated>2025-10-08T19:59:53.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔁 Repository Mirroring — GitLab → GitHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*tU3zCbm1YbR5BNGD.jpg" /></figure><h3>🧠 Introduction</h3><p>Ever wanted your <strong>GitLab project to automatically stay in sync with GitHub</strong>?<br> That’s exactly what <strong>Repository Mirroring</strong> helps you do!</p><p>With <strong>push mirroring</strong>, every change you push to GitLab is <strong>automatically pushed to GitHub</strong> — no extra commands, no manual syncing.</p><p>In this guide, you’ll learn how to set up <strong>GitLab → GitHub repository mirroring</strong> step by step 🚀</p><h3>⚙️ What Is Repository Mirroring?</h3><p><strong>Repository mirroring</strong> allows you to sync two repositories.</p><p>In our case:</p><p><strong><em>Source</em></strong><em> → GitLab<br> </em><strong><em>Mirror</em></strong><em> → GitHub</em></p><h3>🛠️ Steps to Mirror GitLab → GitHub</h3><h3>Step 1️⃣ — Create a Repository on GitHub</h3><ol><li>Go to <a href="https://github.com/new">GitHub → New Repository</a></li><li>Add name (e.g., mirror-repos-github)</li><li>Click <strong>Create repository</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7gTcqIipL9odp1rf2UKJw.png" /></figure><h3>Step 2️⃣ — Create a on <strong>project</strong> GitLab</h3><ol><li>Go to <a href="https://github.com/new">GitLab → New </a>Project</li><li>Add name (e.g., mirror-repo)</li><li>Click <strong>Create project</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gx0mGjN8IM2N7l61END40A.png" /></figure><h3>Step 3️⃣ — Create a Personal Access Token (PAT) on GitHub</h3><p>Use a <strong>Personal Access Token (PAT)</strong> to authenticate GitLab when mirroring to GitHub. This method is secure, straightforward, and works well for automated repository synchronization.</p><ol><li><strong>Log in to your GitHub account</strong> and click on your profile icon (top right).</li><li>Go to <strong>Settings → Developer settings → Personal access tokens → Tokens (classic)</strong>.</li><li>Click <strong>“Generate new token”</strong> → <strong>“Generate new token (classic)”</strong>.</li><li>Give your token a <strong>descriptive name</strong> (for example, GitLab Mirror Token) so you know what it’s used for.</li><li>Set an <strong>expiration date</strong> — GitHub allows you to choose 30 days, 60 days, 90 days, or no expiration. Choosing an expiration helps maintain security best practices.</li><li>Click <strong>Generate token</strong>. <strong>Important:</strong> Copy your token immediately and store it safely — GitHub will not show it again after leaving the page.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VmRNgODg1pIL_7B3duMjYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygKysuFy4Wdzv0LvXhdPhQ.png" /></figure><h3>Step 4️⃣ — Access Repository Settings</h3><p>Open your newly created project.</p><p>In your GitLab project, go to <strong>Settings → Repository → Mirroring repositories</strong>.</p><p>Under <strong>“Push to a remote repository”</strong>, paste the <strong>GitHub repository URL</strong>:</p><ul><li>https://github.com/&lt;username&gt;/&lt;repo-name&gt;.git</li></ul><p>Select <strong>Mirror direction → Push</strong> — this ensures any changes in GitLab are automatically sent to GitHub.</p><p>For <strong>Authentication method</strong>, choose <strong>Password</strong>.</p><p>Paste your <strong>GitHub Personal Access Token (PAT)</strong> in the password field.</p><p>Click <strong>Mirror repository now</strong> to test the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tt_mb34Domd9FU9SsuwJsA.png" /></figure><h3>Step5️⃣: Clone GitLab Repository in your machine, add files and push to server</h3><ul><li>Open git bash and Clone repository</li></ul><pre>git clone https://gitlab.com/&lt;GITLAB_USERNAME&gt;/&lt;GITLAB_REPO&gt;.git</pre><ul><li>cd to repository</li></ul><pre>cd &lt;REPO_NAME&gt;</pre><ul><li>Create a file(index.html)</li></ul><pre>nano index.html</pre><ul><li>Add some lines</li></ul><pre>&lt;h1&gt;This is my mirror repo project &lt;/h1&gt;</pre><ul><li>commit and push to GitLab Server</li></ul><pre>git add .<br>git commit -m &quot;message&quot;<br>git push -u origin main</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QdzNN1WkSkAw0noNxL-bbg.png" /></figure><h3>Output:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uy_0FJMd0QzxsAt6I2HGKQ.png" /></figure><p>Now go to your <strong>GitHub repo</strong> — you’ll see your latest commits appear there automatically 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwMBH2L8ZB8Al-BnBcqsqQ.png" /></figure><h3>🌟 Benefits of GitLab → GitHub Mirroring</h3><p>🔄 Auto-sync Every push in GitLab reflects on GitHub</p><p>☁️ Backup GitHub acts as a safe remote copy</p><p>👩‍💻 Collaboration Teams can access the same repo from both platforms</p><p>🧰 Integration Works with GitHub actions or external CI/CD tools</p><h3>✅ Conclusion</h3><p>Mirroring a GitLab repository to GitHub is a <strong>simple yet powerful way to automate code synchronization</strong>. By setting up push mirroring, you ensure that your work on GitLab is <strong>instantly reflected on GitHub</strong>, providing backup, collaboration flexibility, and visibility across platforms.</p><p>With this setup, you can focus on <strong>writing code</strong> while your repositories stay in sync effortlessly — saving time, reducing errors, and improving workflow efficiency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8ad74fbf8e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ GitHub vs GitLab — Understanding the Difference]]></title>
            <link>https://medium.com/@kakdeavantika52/github-vs-gitlab-understanding-the-difference-f162eca4752c?source=rss-c0469b13bbbf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f162eca4752c</guid>
            <dc:creator><![CDATA[Avantika Kakde]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 08:14:02 GMT</pubDate>
            <atom:updated>2025-10-07T08:14:02.974Z</atom:updated>
            <content:encoded><![CDATA[<h3>💻 GitHub vs GitLab — Understanding the Difference</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9rdO9x1Rwb7rVDxi.png" /></figure><h3>💬 Introduction</h3><p>As I continue my journey in learning <strong>version control tools</strong>, I came across two popular platforms — <strong>GitHub</strong> and <strong>GitLab</strong>.</p><p>Both are built on <strong>Git</strong>, the tool that developers use to manage their code and track changes.<br> But what makes GitHub and GitLab different? Let’s find out 👇</p><h3>🧠 What is Git?</h3><p>Before comparing both platforms, it’s important to know what <strong>Git</strong> actually is.</p><p><strong>Git</strong> is a <strong>version control system</strong> that helps developers:<br> 🔹 Track every change made to code<br> 🔹 Work on projects with multiple people<br> 🔹 Go back to previous versions when needed</p><p>Think of Git as a <strong>time machine for your code</strong> — it remembers every step you take. ⏳</p><h3>🖥️ What is GitHub?</h3><p><strong>GitHub</strong> is a <strong>cloud-based platform</strong> where developers can store their Git repositories online, collaborate with others, and contribute to open-source projects.</p><p>✨ <strong>Key Features:</strong><br> ✅ Store and share repositories online<br> ✅ Collaborate using pull requests and branches<br> ✅ Review and comment on code<br> ✅ Connect with millions of developers worldwide</p><p>💡 <strong>In short:</strong> GitHub is the most popular place for open-source projects and teamwork.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9jm8-d7UQse3TdPko1ODw.png" /></figure><h3>🧰 What is GitLab?</h3><p><strong>GitLab</strong> is another <strong>Git-based platform</strong> used for hosting and managing repositories.<br> It allows teams to work together on projects, track issues, and manage their code versions.</p><p>✨ <strong>Key Features:</strong><br> ✅ Host and manage Git repositories<br> ✅ Create and manage branches<br> ✅ Track issues and progress within the platform<br> ✅ Option to use it privately or within organizations</p><p>💡 <strong>In short:</strong> GitLab focuses on helping teams organize their projects and manage work efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXvjIhuNaufEnKn6u_-oTA.png" /></figure><h3>⚖️ GitHub vs GitLab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*-3D6lNc8q2MWeB9Mjs91SA.png" /></figure><h3>📂 Example</h3><p>Imagine you’re working on a group project.</p><ul><li>On <strong>GitHub</strong>, your team can upload code, create branches for different features, and review each other’s work through pull requests.</li><li>On <strong>GitLab</strong>, your team can do the same, but also keep everything organized in one space with issues, milestones, and discussions.</li></ul><p>Both platforms help you work together smoothly and keep your code safe.</p><h3>Conclusion: The Three Big Ideas</h3><p>Let’s quickly recap the essentials of version control:</p><p><strong>💡 Git</strong> is the powerful time machine that lives <strong>locally</strong> on your computer to track every change.</p><p><strong>💡 GitHub</strong> is the world’s largest social network for code, helping you <strong>share, collaborate,</strong> and get feedback from the community.</p><p><strong>💡 GitLab</strong> is the complete <strong>project management platform</strong>, helping teams store, manage, and organize code in one cohesive place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f162eca4752c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>