<?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 Parag Patil on Medium]]></title>
        <description><![CDATA[Stories by Parag Patil on Medium]]></description>
        <link>https://medium.com/@parag.patil2411?source=rss-894539c11d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qNCwHUWa6WmduRfP</url>
            <title>Stories by Parag Patil on Medium</title>
            <link>https://medium.com/@parag.patil2411?source=rss-894539c11d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:01:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@parag.patil2411/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 the Software Development Life Cycle (SDLC) and the Role of DevOps Engineers]]></title>
            <link>https://medium.com/@parag.patil2411/understanding-the-software-development-life-cycle-sdlc-and-the-role-of-devops-engineers-d6dad1714dc7?source=rss-894539c11d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6dad1714dc7</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Parag Patil]]></dc:creator>
            <pubDate>Fri, 25 Aug 2023 12:18:18 GMT</pubDate>
            <atom:updated>2023-08-25T12:18:18.635Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*gQk4SKrHPavm1oIsjV9pjQ.png" /></figure><p>When organizations aim to implement new initiatives, they invariably follow the Software Development Life Cycle (SDLC), a structured process that guides software projects from inception to deployment.</p><p>SDLC comprises six distinct phases:</p><ol><li>Planing</li><li>Defining</li><li>Designing</li><li>Building</li><li>Testing</li><li>Deployment</li></ol><p>Let’s understane ervery phase:</p><ol><li>Planing: During the planning and requirement phase, organizations engage with customers to comprehend their needs. For instance, consider the scenario of an e-commerce company like example.com. If they initially sell men’s clothing and now seek to expand into women’s apparel, the project owner or CTO would interact with customers to grasp this requirement.</li><li>Definition: Once the requirements are understood, they are documented in a detailed manner. This compilation of requirements and plans takes the form of a “software requirement specification document.”</li><li>Design: Moving forward, the project enters the design phase, which includes both High-Level Design (HLD) and Low-Level Design (LLD). In HLD, architects outline a scalable software design, while in LLD, they delve into specifics such as programming languages and database choices, like MySQL.</li><li>Building : Building means Devloping phase. The development phase involves actual coding and programming. With the plans and designs in place, developers start constructing the application. Upon development completion, the code is typically stored in a version control system, such as Git-GitHub.</li><li>Testing : After development, the application moves to the testing phase. Here, Quality Assurance (QA) engineers take the stored repositories and test the application on a server to ensure its functionality and reliability.</li><li>Deployment :Following testing and quality assurance, the application is deployed to a production server. This is where users and customers interact with the application in its live environment.</li></ol><p>Now, let’s explore where DevOps engineers fit into this cycle. DevOps engineers are instrumental during the development, testing, and deployment phases, working to streamline and accelerate the processes within each.</p><p>During the development phase, DevOps engineers automate workflows, making them more efficient. This involves setting up continuous integration and continuous delivery (CI/CD) pipelines, which enable automated building, testing, and deployment of code.</p><p>In the testing phase, DevOps engineers continue to play a pivotal role. They help establish automated testing processes, ensuring that code changes are rigorously tested across various environments. This automation reduces the likelihood of errors slipping through the cracks.</p><p>When it comes to deployment, DevOps engineers shine by automating the deployment process. This leads to faster, consistent, and more reliable deployments. Moreover, they monitor the application in production, promptly addressing any issues that arise.</p><p>In conclusion, the Software Development Life Cycle (SDLC) is a structured framework guiding projects from planning to deployment. DevOps engineers become crucial in the building, testing, and deployment phases, where their expertise in automation and streamlining processes greatly enhances the efficiency and effectiveness of software development projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6dad1714dc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerized Flask Monitoring Application with Automated Script]]></title>
            <link>https://medium.com/@parag.patil2411/dockerized-flask-monitoring-application-with-automated-script-f497284a4afa?source=rss-894539c11d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f497284a4afa</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[bash-script]]></category>
            <dc:creator><![CDATA[Parag Patil]]></dc:creator>
            <pubDate>Fri, 07 Jul 2023 12:04:09 GMT</pubDate>
            <atom:updated>2023-07-07T12:04:09.968Z</atom:updated>
            <content:encoded><![CDATA[<p>Description: This project demonstrates the containerization of a monitoring application built with Flask and psutil using Docker. The application monitors system metrics and provides a web interface to view the data. To simplify the execution process, an automated bash script is included.</p><p>I have created a monitoring application in Python using Flask and psutil.</p><pre>import psutil<br>from flask import Flask, render_template<br><br>app = Flask(__name__)<br><br>@app.route(&quot;/&quot;)<br>def index():<br>    cpu_metric = psutil.cpu_percent()<br>    mem_metric = psutil.virtual_memory().percent<br>    Message = None<br>    if cpu_metric &gt; 80 or mem_metric &gt; 80:<br>        Message = &quot;High CPU or Memory Detected, scale up!!!&quot;<br>    return render_template(&quot;index.html&quot;, cpu_metric=cpu_metric, mem_metric=mem_metric, message=Message)<br><br>if __name__==&#39;__main__&#39;:<br>    app.run(debug=True, host = &#39;0.0.0.0&#39;)</pre><p>Then, I created a Dockerfile for containerizing the application.</p><pre>FROM python:3.9-buster<br><br>WORKDIR /app<br><br>COPY requirements.txt .<br><br>RUN pip3 install --no-cache-dir -r requirements.txt<br><br>COPY . .<br><br>ENV FLASK_RUN_HOST=0.0.0.0<br><br>EXPOSE 5000<br><br>CMD [&quot;flask&quot;, &quot;run&quot;]</pre><p>I built an image from the Dockerfile using the command:</p><pre>$ sudo docker build -t my-flask-app .</pre><p>I successfully found my container with the following details: <br>Successfully built f7463f72d435<br>Successfully tagged my-flask-app:latest</p><p>To check if your container is running or not, use the following command:</p><pre>$ sudo docker run -p 5000:5000 f7463f72d435</pre><p>Next, I pushed this container to Docker Hub using the following commands:</p><pre>$ sudo docker tag my-flask-app:latest paragpatil01/my-flask-app:latest <br>$ sudo docker login <br>$ sudo docker push paragpatil01/my-flask-app:latest</pre><p>After pushing the container, I created a bash script named run_my_flask_app.sh to automate the execution of the necessary commands. This script allows you to start your app on your machine by simply running the script. Here is the corrected script:</p><pre>#!/bin/bash<br><br># Stop and remove the previous container if it exists<br>sudo docker stop my-flask-app-container<br>sudo docker rm my-flask-app-container<br><br># Pull the latest version of the image from Docker Hub<br>sudo docker pull paragpatil01/my-flask-app:latest<br><br># Run the container<br>sudo docker run -p 8080:80 - name my-flask-app-container paragpatil01/my-flask-app:latest</pre><p>To start your app on your machine, simply run the following command:</p><pre>./run_my_flask_app.sh</pre><p>Now, your app should be running on your machine.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f497284a4afa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Architecture of Kubernetes (K8s) is an Difficult to Understand ?]]></title>
            <link>https://medium.com/@parag.patil2411/architecture-of-kubernetes-k8s-is-an-difficult-to-understand-4f25d281461d?source=rss-894539c11d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f25d281461d</guid>
            <category><![CDATA[devops-practice]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devops-services]]></category>
            <category><![CDATA[devops-tool]]></category>
            <dc:creator><![CDATA[Parag Patil]]></dc:creator>
            <pubDate>Thu, 29 Jun 2023 12:49:59 GMT</pubDate>
            <atom:updated>2023-06-29T13:42:22.502Z</atom:updated>
            <content:encoded><![CDATA[<h3>Architecture of Kubernetes (K8s) is an Difficult to Understand ?</h3><p>No not at all !</p><p>Kubernetes (K8s) is a powerful <strong>container orchestration platform </strong>that offers numerous advantages over Docker alone. Despite its perceived complexity, understanding the architecture of Kubernetes is key to harnessing its full potential.</p><p>In this blog, <strong>we will break down the components and workings of Kubernetes in a simple and approachable manner.</strong> Discover how Kubernetes provides services like cluster management, autohealing, and autoscaling, and gain a solid understanding of its control plane (master node) and data plane (worker node). By the end, you’ll see that Kubernetes is not as daunting as it may seem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*uN533YXE1iFMRjRbrKaHXA.png" /><figcaption>Architecture of Kubernetes (K8s)</figcaption></figure><p>Before we delve into the architecture of Kubernetes, <strong>let’s first understand why Kubernetes is more valuable compared to Docker.</strong></p><p>Kubernetes offers several services that enhance its effectiveness compared to Docker alone:</p><ol><li><strong>Cluster:</strong> Kubernetes addresses the limitation of a single-host nature by allowing multiple machines to work together as a unified system. Unlike Docker, where a single host manages all the containers, Kubernetes clusters distribute the workload across multiple machines. This approach prevents scenarios where a container utilizing a large portion of the memory can disrupt others on the same host.</li><li><strong>Autohealing:</strong> Kubernetes excels in maintaining container availability. If a container is about to die, Kubernetes automatically restarts it without requiring manual intervention. This feature, known as autohealing, ensures that your applications continue running smoothly even in the face of failures.</li><li><strong>Autoscaling:</strong> Kubernetes includes a component that dynamically adjusts the number of containers based on the application’s load. This feature, called autoscaling, allows Kubernetes to automatically increase or decrease the number of containers to handle fluctuating demand. As a result, your application can scale seamlessly without manual intervention.</li></ol><p>Now, let’s dive into the architecture of Kubernetes.</p><p>Kubernetes consists of two main parts: the <strong>control plane (master node)</strong> and the<strong> data plane (worker node)</strong>. Each part consists of multiple components that work together to manage and execute containerized applications.</p><p><strong>Control Plane (Master Node):</strong></p><ol><li><strong>API Server:</strong> The API server acts as the central communication hub within the Kubernetes cluster. It receives instructions from users or other systems and sends commands to the worker nodes. For example, when a user orders the creation of a new pod, the API server determines which worker node should host the pod and instructs the kubelet to create it. The API server is a core component of Kubernetes.</li><li><strong>etcd:</strong> Etcd serves as the backing store for the entire cluster’s information. It stores the configuration and state data of the cluster, allowing Kubernetes to maintain a consistent and reliable view of the cluster’s state.</li><li><strong>Scheduler: </strong>The scheduler is responsible for assigning tasks, such as pods, to worker nodes based on available resources and constraints. It ensures optimal resource utilization and load balancing across the cluster, ensuring that applications are deployed efficiently.</li><li><strong>Controller Manager:</strong> The controller manager monitors the state of the cluster and takes corrective actions if anything goes wrong. It ensures that the desired state of the cluster is maintained and performs various control functions, including scaling, replication, and self-healing. The controller manager ensures that the cluster remains in the desired configuration at all times.</li></ol><p><strong>Data Plane (Worker Node):</strong></p><ol><li><strong>Kubelet:</strong> The kubelet is responsible for managing and maintaining the state of individual worker nodes. It ensures that pods are created and running on the node. If a pod fails, the kubelet informs the API server, which then instructs the controller manager to revive or regenerate the container. This capability is known as container autohealing and helps maintain high availability for applications.</li><li><strong>Kube-proxy:</strong> Kube-proxy handles networking tasks within the cluster. It generates IP addresses and performs load balancing to enable communication between containers running on different nodes. By utilizing IP tables on the Linux machine, kube-proxy configures and manages network-related settings required for proper connectivity.</li><li><strong>Container Runtime:</strong> The container runtime is the software responsible for running and managing containers. It provides the environment in which containers can execute, including managing the lifecycle of containers, resource allocation, and isolation. Kubernetes is compatible with various container runtimes like Docker, Containerd, and CRI-O.</li></ol><p>By understanding the roles and interactions of these components within the control plane and data plane, you can effectively manage and orchestrate your containerized applications using Kubernetes.</p><p>In conclusion, Kubernetes may appear complex at first, but by breaking down its architecture and components, we can demystify its workings. Kubernetes provides valuable services like cluster management, autohealing, and autoscaling, making it a highly valuable tool for container orchestration. By grasping the core concepts of Kubernetes, you’ll be equipped to leverage its full potential and streamline your application deployment and management processes.</p><p>Thank you for Reading ! I hope you understand the Arechitecture of Kubernetes.</p><p>#devops #kubernetes #blog #Kubernetescluster</p><p>#devopstools</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f25d281461d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>