<?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 Rushikesh Mahindrakar on Medium]]></title>
        <description><![CDATA[Stories by Rushikesh Mahindrakar on Medium]]></description>
        <link>https://medium.com/@rushikeshmahindrakar26?source=rss-1dc5a61570ac------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MaiYUc6CCuRB7rkC</url>
            <title>Stories by Rushikesh Mahindrakar on Medium</title>
            <link>https://medium.com/@rushikeshmahindrakar26?source=rss-1dc5a61570ac------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 22:39:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rushikeshmahindrakar26/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[Gitea + Drone for a Lightweight Self-Hosted CI/CD]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/gitea-drone-for-a-lightweight-self-hosted-ci-cd-edd224c728b7?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/edd224c728b7</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 13:20:35 GMT</pubDate>
            <atom:updated>2025-03-02T13:20:35.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In modern software development, having a self-hosted Git server and a lightweight CI/CD pipeline is crucial for teams that prioritize privacy, control, and efficiency. <strong>Gitea</strong> is an open-source, lightweight Git server, while <strong>Drone</strong> is a container-native CI/CD system that seamlessly integrates with Gitea.</p><h3>Prerequisites</h3><p>Before proceeding, ensure you have the following:</p><ul><li>A <strong>Linux server</strong> (Ubuntu/Debian/CentOS)</li><li><strong>Docker</strong> and <strong>Docker Compose</strong> installed</li><li>A <strong>domain name</strong> (optional, but recommended)</li><li>Basic knowledge of <strong>Git</strong> and <strong>CI/CD workflows</strong></li></ul><p><strong>1. Create directory structure:</strong></p><ol><li>mkdir -p ~/ci-stack/gitea ~/ci-stack/drone</li><li>cd ~/ci-stack</li></ol><p><strong>2. Create docker-compose.yml</strong></p><p>version: ‘3’</p><p>networks:</p><p>cicd:</p><p>volumes:</p><p>gitea-data:</p><p>drone-data:</p><p>services:</p><p>gitea:</p><p>image: gitea/gitea:latest</p><p>container_name: gitea</p><p>restart: always</p><p>networks:</p><p>- cicd</p><p>ports:</p><p>- “3000:3000” # Gitea web UI</p><p>- “2222:22” # Gitea SSH for Git clone</p><p>volumes:</p><p>- gitea-data:/data</p><p>environment:</p><p>- USER_UID=1000</p><p>- USER_GID=1000</p><p>drone-server:</p><p>image: drone/drone:latest</p><p>container_name: drone-server</p><p>restart: always</p><p>networks:</p><p>- cicd</p><p>ports:</p><p>- “8080:80”</p><p>volumes:</p><p>- drone-data:/data</p><p>environment:</p><p>- DRONE_GITEA_SERVER=http://192.168.29.2213000</p><p>- DRONE_RPC_SECRET=your-random-secret</p><p>- DRONE_SERVER_HOST=192.168.29.221:8080 # Adjust your server IP</p><p>- DRONE_SERVER_PROTO=http</p><p>- DRONE_USER_FILTER=root</p><p>- DRONE_USER_CREATE=username:root,admin:true</p><p>- DRONE_GITEA_CLIENT_ID=your-client-id # (will be configured later)</p><p>- DRONE_GITEA_CLIENT_SECRET=your-client-secret</p><p>drone-runner:</p><p>image: drone/drone-runner-docker:latest</p><p>container_name: drone-runner</p><p>restart: always</p><p>networks:</p><p>- cicd</p><p>environment:</p><p>- DRONE_RPC_PROTO=http</p><p>- DRONE_RPC_HOST=drone-server:80</p><p>- DRONE_RPC_SECRET=your-random-secret</p><p>- DRONE_RUNNER_NAME=default-runner</p><p>- DRONE_RUNNER_CAPACITY=2</p><p>- DRONE_LOGS_DEBUG=true</p><p>- DRONE_LOGS_TRACE=true</p><p>volumes:</p><p>- /var/run/docker.sock:/var/run/docker.sock</p><p>To find your IP run the command</p><p>Hostname -I</p><p><strong>3. Start the stack</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*fWVNnZ7ymY9-ofQ_8PO80A.png" /></figure><p><strong>4. Gitea UI access</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*djtlixtPckoB7EIsbOcFwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Tffsej2S3pDsN7OmT_OU9w.png" /></figure><p>Gitea is installed successfully.</p><p><strong>5. Create Gitea OAuth App (for Drone)</strong></p><p>Login to Gitea.</p><p>Go to Settings &gt; Applications.</p><p>Click Create New OAuth2 Application.</p><p>Name: Drone CI</p><p>Redirect URI: <a href="http://192.168.21.229:8080/login">http://192.168.21.229:8080/login</a></p><p>Note down Client ID and Client Secret. (*********)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*jioKzeK-Yvhz9F5nfnqBMg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4DeWoO8pkFkk4k2w0qBkWQ.png" /></figure><p><strong>7. Update Docker Compose (Drone Server)</strong></p><p>- DRONE_GITEA_CLIENT_ID=your-client-id</p><p>- DRONE_GITEA_CLIENT_SECRET=your-client-secret</p><p>Then restart:</p><p>sudo docker compose down</p><p>sudo docker compose up -d</p><p><strong>8. Drone- Registration</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6akbzBCy4bge_qsIh02mzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rAJTfExyUTu__HEcOS_xMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HbYlz02aLxwIyvKyI_4ahQ.png" /></figure><p><strong>9</strong>. <strong>Test sample workflow for CICD</strong></p><ol><li>Create one testrepo named cicd</li><li>Add drone.yml in the same</li></ol><p><em>Simple drone pipeline:</em></p><p>kind: pipeline</p><p>type: docker</p><p>name: default</p><p>steps:</p><p>- name: test</p><p>image: alpine</p><p>commands:</p><p>- echo “Running tests”</p><p>echo “Tests passed!”</p><p>3. Now go to drone url and sync the repo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*s2eSiaH9clHr0SgybWG-qg.png" /></figure><p>4. Activate the repo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*pFjMhrCWTJ06r6oMoHUNUw.png" /></figure><p>5. Go to build and click on new build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rpjuziToGvJ3Pt7VgzQVyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*JhYDzibxt5PmMZezO0DSqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*CSdt3zsTrw5PpfoHYgO9CA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*U_XBcQCxEwgk2gwQG2t2Xw.png" /></figure><p>Thanks for reading this blog!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edd224c728b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting Up Email Notifications in Gitea]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/setting-up-email-notifications-in-gitea-daa6d79a2f34?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/daa6d79a2f34</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 16:08:03 GMT</pubDate>
            <atom:updated>2025-02-17T16:08:03.534Z</atom:updated>
            <content:encoded><![CDATA[<p>Email notifications are essential for staying updated on activities such as issue updates, pull request changes, and other repository events. Here’s how to configure email notifications in Gitea:</p><h3>1. Access Gitea Configuration File</h3><p>Locate the Gitea configuration file, typically found at:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*r4a_yA4iS_rbgen-mlGT3g.png" /></figure><p>Open the file with a text editor:</p><p>Sudo nano app.ini</p><h3>2. Configure Email Settings</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SEZWbwNTWopD9GB9wsSDRQ.png" /></figure><p>Under the [mailer] section, add or edit the following configurations:</p><p>[mailer]</p><p>ENABLED = true</p><p>SMTP_ADDR =<a href="http://smtp.gmail.com/"> smtp.gmail.com</a> # SMTP Host</p><p>SMTP_PORT = 587 # SMTP Port</p><p>FROM = “example@your-domain.com”</p><p>USER = “example@your-domain.com”</p><p>PASSWD = “Your password”</p><p>PROTOCOL = smtp+starttls # For Gmail and most providers</p><p>To create password:</p><p>Kindly login to your gmail account → App password →add gitea app</p><p>16 digit password will get generated copy that password and use the same</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*f4OMXtLGeU6rmmPyr51jTg.png" /></figure><p>From service enable notify email on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*YN1bDaRmwAyL7lWAykUfJw.png" /></figure><h3>3. Enable Notifications in Gitea UI</h3><ol><li>Log in to Gitea as an administrator.</li><li>Go to <strong>Site Administration</strong> → <strong>Configuration</strong> → <strong>Settings</strong>.</li><li>Under <strong>Notification Settings</strong>, ensure notifications are enabled.</li></ol><h3>4. Restart Gitea Service</h3><p>After making changes, restart the Gitea service for the settings to take effect:</p><p>sudo systemctl restart gitea</p><h3>5. Test Email Notification</h3><p>Go to site administration → Configuration → Summary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*SOhZiSUYQjztbC48ZSbumQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ST6_IC3Fs-W2p2dPtRMMuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*-J_1m9j2w_-qd_6LuNktnw.png" /></figure><p>You can also check by forget password button you will get password recovery email.</p><h3>Conclusion</h3><p>Once configured, Gitea will send email notifications for actions like:</p><p>● New issues or pull requests.</p><p>● Comments on issues or pull requests.</p><p>● Repository updates or changes.</p><p>This ensures all team members stay informed about project activities in real-time</p><p>Thanks for reading this blog. if you have any errors while setup, connect me on LinkedIn <a href="https://www.linkedin.com/in/rushikesh-mahindrakar-70b82537/">https://www.linkedin.com/in/rushikesh-mahindrakar-70b82537/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa6d79a2f34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Services]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/kubernetes-services-df62544fefad?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/df62544fefad</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Sat, 22 Jun 2024 18:02:58 GMT</pubDate>
            <atom:updated>2024-06-22T18:02:58.274Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes Services are resources that direct network traffic to Pods within your cluster. Whenever you need to expose a set of Pods over the network, either internally or externally, you must create a Service.</p><p><strong>Why kubernetes servcies:</strong></p><p>Kubernetes Services are fundamental for managing and simplifying network communication within a cluster. They provide stable endpoints, load balancing, service discovery, and decoupling of application components, all of which are essential for building scalable, resilient, and maintainable applications in a Kubernetes environment.</p><p><strong>Key Features of Kubernetes Services:</strong></p><ol><li><strong>Stable Network Endpoint</strong>: Services provide a stable endpoint (IP address and DNS name) for a set of Pods, allowing clients to interact with the application without needing to keep track of the constantly changing Pod IP addresses.</li><li><strong>Load Balancing</strong>: Services distribute traffic among the Pods they expose, providing load balancing. This ensures efficient utilization of resources and availability of the application.</li><li><strong>Service Discovery</strong>: Kubernetes Services are discoverable within the cluster using DNS. Kubernetes automatically assigns a DNS name to each Service, enabling Pods to refer to the Service by name.</li><li><strong>Service Types</strong>: Kubernetes supports several types of Services to cater to different use cases:</li></ol><ul><li><strong>ClusterIP</strong>: Exposes the Service on an internal IP in the cluster, making it accessible only within the cluster.</li><li><strong>NodePort</strong>: Exposes the Service on each Node’s IP at a static port, making it accessible from outside the cluster.</li><li><strong>Load Balancer</strong>: Exposes the Service externally using a cloud provider’s load balancer.</li><li><strong>External Name</strong>: Maps the Service to a DNS name, allowing you to proxy external services.</li></ul><p><strong>How services work<br>Selectors:</strong> Services use selectors to identify the Pods they should target. A selector is a label query over Pods that matches the labels of the desired Pods.<strong><br>Endpoints: </strong>Kubernetes maintains a list of endpoints for a Service, which are the IP addresses and ports of the Pods matching the Service’s selector.<strong><br>Service Proxy: K</strong>ubernetes includes a built-in proxy (kube-proxy) that routes traffic to the appropriate backend Pods. This proxy ensures that requests sent to the Service are distributed among the available Pods.<strong><br>Service Discovery and DNS: K</strong>ubernetes provides built-in service discovery mechanisms. When a Service is created, Kubernetes assigns it a DNS name based on the Service name and namespace. For example, a Service named my-service in the default namespace is accessible within the cluster at my-service.default.svc.cluster.local.</p><p><strong>Use Cases for Kubernetes Services:</strong><br>Internal Communication: Services enable communication between different parts of an application running within the cluster, such as microservices.<br>External Access: By using NodePort or LoadBalancer types, Services can expose applications to external users, making it possible to access the application from outside the cluster.<br>Service Abstraction: Services abstract the details of the underlying Pods, allowing developers to focus on the application logic without worrying about the dynamic nature of Pod IP addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hD8NgzEBaoH7NV9b.jpg" /><figcaption>Image credit stake overflow</figcaption></figure><p><strong>Ways to expose a service in Kubernetes:</strong></p><p>1.<strong>ClusterIP (default)</strong>:</p><ul><li><strong>Description</strong>: Exposes the service on a cluster-internal IP. Only accessible within the cluster.</li><li><strong>Use Case</strong>: Internal applications within the cluster that do not need to be exposed externally.</li><li>Configuration example:</li></ul><p>apiVersion: v1<br>kind: Service<br>metadata:<br> name: my-service<br>spec:<br> selector:<br> app: MyApp<br> ports:<br> — protocol: TCP<br> port: 80<br> targetPort: 9376<br> type: ClusterIP</p><p>2.<strong>NodePort</strong>:</p><ul><li><strong>Description</strong>: Exposes the service on each Node’s IP at a static port (the NodePort). This makes the service accessible from outside the cluster using &lt;NodeIP&gt;:&lt;NodePort&gt;.</li><li><strong>Use Case</strong>: Simple, limited access from outside the cluster, often used for development or testing.</li><li>Configuration example:</li><li>apiVersion: v1<br>kind: Service<br>metadata:<br> name: my-service<br>spec:<br> type: NodePort<br> selector:<br> app: MyApp<br> ports:<br> — protocol: TCP<br> port: 80<br> targetPort: 9376<br> nodePort: 30007</li></ul><p>3.<strong>LoadBalancer</strong>:</p><ul><li><strong>Description</strong>: Exposes the service externally using a cloud provider’s load balancer. Automatically provisions an external IP for the service.</li><li><strong>Use Case</strong>: When a service needs to be accessible from outside the cluster in a production environment.</li><li>Configuration example:</li><li>apiVersion: v1<br>kind: Service<br>metadata:<br> name: my-service<br>spec:<br> type: LoadBalancer<br> selector:<br> app: MyApp<br> ports:<br> — protocol: TCP<br> port: 80<br> targetPort: 9376</li></ul><p>4. <strong>ExternalName</strong>:</p><ul><li><strong>Description</strong>: Maps the service to a DNS name (ExternalName) rather than exposing the service directly. It can be used to proxy external services.</li><li><strong>Use Case</strong>: When you need to connect to services outside the Kubernetes cluster without manually managing IP addresses.</li><li>Configuration example:</li><li>apiVersion: v1<br>kind: Service<br>metadata:<br> name: my-service<br>spec:<br> type: ExternalName<br> externalName: my.database.example.com</li></ul><p>5.<strong>Ingress</strong>:</p><ul><li><strong>Description</strong>: Provides HTTP and HTTPS routing to services based on URL paths and hosts. Unlike the previous methods, Ingress is not a Service but an API object that manages external access to services in a cluster.</li><li><strong>Use Case</strong>: Complex HTTP/HTTPS routing and termination for services. Useful for exposing multiple services under a single external IP.</li><li>Configuration example:</li><li>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br> name: my-ingress<br>spec:<br> rules:<br> — host: my-app.example.com<br> http:<br> paths:<br> — path: /<br> pathType: Prefix<br> backend:<br> service:<br> name: my-service<br> port:<br> number: 80</li></ul><p>Difference between services:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/0*WaM8LJI2NNjzmXDM.png" /><figcaption>Image credit by Stake overflow</figcaption></figure><p>Thank you for taking time and reading my blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df62544fefad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Components & Architecture (Basics)]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/kubernetes-components-architecture-basics-34f65a395946?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/34f65a395946</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Fri, 31 May 2024 03:17:02 GMT</pubDate>
            <atom:updated>2024-05-31T03:17:02.250Z</atom:updated>
            <content:encoded><![CDATA[<p>Kubernetes is an open source orchestrator for deploying containerized applications. The system was open sourced by google. Kubernetes automates the operational tasks of container management and includes built-in commands for deploying applications, rolling out updates, scaling applications up or down based on demand, monitoring application health, and more. This comprehensive functionality simplifies the management of applications.</p><p>Components involved in Kubernetes (k8s):</p><ol><li>Pods:</li></ol><p>The smallest and simplest Kubernetes object, a pod represents a single instance of a running process in your cluster. A pod can contain one or more containers, which share the same network namespace and storage volumes.</p><p>2. Service:</p><p>A Kubernetes Service defines a logical set of pods and a policy by which to access them. Services enable loose coupling between dependent pods. They provide a stable endpoint (IP and port) for accessing a group of pods, abstracting away the underlying pod changes.</p><p>3. Kube API Server:</p><p>The Kube-API Server is the central management entity that exposes the Kubernetes API. It processes REST operations, validates and configures the data for API objects (like pods, services, replication controllers), and serves as the entry point for all administrative tasks.</p><p>4. Scheduler:</p><p>The Kubernetes Scheduler watches for newly created pods that have no node assigned. It selects an optimal node for them to run on based on resource availability, policies, and constraints.</p><p>5. Controller Manager:</p><p>The Controller Manager runs controller processes. Controllers are responsible for ensuring the cluster’s desired state matches the observed state. Examples include the Node Controller, Replication Controller, and Endpoints Controller, among others.</p><p>6.etcd:</p><p>etcd is a distributed key-value store used by Kubernetes to store all cluster data, including configuration data, state information, and metadata. It is the source of truth for the cluster’s state.</p><p>7.Kubelet:</p><p>The Kubelet is an agent that runs on each node in the cluster. It ensures that containers are running in a pod. The Kubelet communicates with the Kube-API Server to receive pod specifications and report back the node’s status.</p><p>8. Kube- proxy:</p><p>The Kube-Proxy maintains network rules on nodes. It enables network communication to your pods from network sessions inside or outside of your cluster. Kube-Proxy can perform simple TCP, UDP, and SCTP stream forwarding or round-robin forwarding across a set of backends.</p><p>9. Container runtime:</p><p>Although not strictly a Kubernetes component, the container runtime is essential for running containers. Kubernetes supports several container runtimes, including Docker, containerd, and CRI-O. The runtime is responsible for pulling container images and running containers.</p><p>10. Replica Set</p><p>Ensures a specified number of pod replicas are running at any given time. It is primarily used by Deployments to manage pod scaling and availability.</p><p>11. ConfigMap and Secret</p><p>ConfigMap: Stores configuration data in key-value pairs. It decouples environment-specific configurations from container images.</p><p>Secret: Similar to ConfigMap but intended to store sensitive information, such as passwords and API keys, in an encrypted format.</p><p>12. Namespace</p><p>A way to divide cluster resources between multiple users. Namespaces provide a scope for names, enabling different users or teams to share a cluster without interfering with each other.</p><p>13. Volume</p><p>A directory accessible to containers in a pod. Volumes provide persistent storage, allowing data to survive container restarts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5tBHfYpO4MvLYOpIpNeE6Q.png" /></figure><p><strong>Kubernetes Architecture Model- Basic concept</strong></p><p>Its architecture is based on a master-worker model, where the master node manages the cluster and the worker nodes run the containers. Here are the basic concepts and the architecture model of Kubernetes:</p><ol><li>Master Node:</li></ol><p>The master node is responsible for managing the Kubernetes cluster. It coordinates all activities within the cluster, including scheduling, scaling, and maintaining the desired state of applications.</p><p>Components of Master Node:</p><ul><li>Kube-API Server: Exposes the Kubernetes API, serving as the main entry point for all administrative tasks. It processes REST operations, validates requests, and updates the state in etcd.</li><li>etcd: A distributed key-value store that serves as the backing store for all cluster data. It stores configuration data, state information, and metadata.</li><li>Kube-Scheduler: Watches for newly created pods with no assigned node and selects the optimal node for them to run on based on resource requirements and constraints.</li><li>Controller Manager: Runs controller processes that regulate the state of the cluster. Key controllers include:</li><li>Node Controller: Manages node status and performs health checks.</li><li>Replication Controller: Ensures the specified number of pod replicas are running.</li><li>Endpoint Controller: Manages endpoint objects, mapping services to pods.</li><li>Service Account &amp; Token Controllers: Manage authentication tokens and service accounts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*-CU-SmUZVfr7jdMgG9NJOA.png" /></figure><p>2. Worker Nodes:</p><p>Worker nodes are the machines where containers (pods) run. Each worker node contains the necessary services to manage and run the containerized applications.</p><p>Components of worker Node:</p><ul><li>Kubelet: An agent that runs on each worker node, ensuring containers are running in a pod as specified by the pod manifest. It communicates with the Kube-API Server to get instructions and report the status of nodes and pods.</li><li>Kube-Proxy: Manages network rules and performs network routing for pod communication both inside and outside the cluster. It enables service discovery and load balancing.</li><li>Container Runtime: The software responsible for running containers. Kubernetes supports various runtimes, including Docker, containerd, and CRI-O.</li></ul><p>Kubernetes (K8S) is a powerful system for managing containerized applications in a clustered environment. Its architecture is based on a master-worker model, where the master node manages the cluster and the worker nodes run the containers. Here are the basic concepts and the architecture model of Kubernetes:</p><h3>Kubernetes Architecture Model</h3><h4>1. Master Node</h4><p>The master node is responsible for managing the Kubernetes cluster. It coordinates all activities within the cluster, including scheduling, scaling, and maintaining the desired state of applications. The master node consists of several key components:</p><ul><li>Kube-API Server: Exposes the Kubernetes API, serving as the main entry point for all administrative tasks. It processes REST operations, validates requests, and updates the state in etcd.</li><li>etcd: A distributed key-value store that serves as the backing store for all cluster data. It stores configuration data, state information, and metadata.</li><li>Kube-Scheduler: Watches for newly created pods with no assigned node and selects the optimal node for them to run on based on resource requirements and constraints.</li><li>Controller Manager: Runs controller processes that regulate the state of the cluster. Key controllers include:</li><li>Node Controller: Manages node status and performs health checks.</li><li>Replication Controller: Ensures the specified number of pod replicas are running.</li><li>Endpoint Controller: Manages endpoint objects, mapping services to pods.</li><li>Service Account &amp; Token Controllers: Manage authentication tokens and service accounts.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*-CU-SmUZVfr7jdMgG9NJOA.png" /></figure><h4>2. Worker Nodes</h4><p>Worker nodes are the machines where containers (pods) run. Each worker node contains the necessary services to manage and run the containerized applications. Key components on worker nodes include:</p><ul><li>Kubelet: An agent that runs on each worker node, ensuring containers are running in a pod as specified by the pod manifest. It communicates with the Kube-API Server to get instructions and report the status of nodes and pods.</li><li>Kube-Proxy: Manages network rules and performs network routing for pod communication both inside and outside the cluster. It enables service discovery and load balancing.</li><li>Container Runtime: The software responsible for running containers. Kubernetes supports various runtimes, including Docker, containerd, and CRI-O.</li></ul><p>This architecture ensures that Kubernetes can manage and orchestrate containerized applications efficiently, providing scalability, high availability, and ease of management.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34f65a395946" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker orchestration tool]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/docker-orchestration-tool-564850c82d48?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/564850c82d48</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Thu, 30 May 2024 08:53:58 GMT</pubDate>
            <atom:updated>2024-05-30T08:56:48.856Z</atom:updated>
            <content:encoded><![CDATA[<p>The Docker container orchestration tool, known as Docker Swarm, can package and run applications as containers, discover existing container images from others, and deploy containers on a laptop, server, or in the cloud (both public and private).</p><p>Different types of docker orchestration tool:</p><h4><strong>1. Docker Swarm</strong></h4><ul><li>Integrated with Docker: Docker Swarm is built into Docker, making it easy to use for those already familiar with Docker commands.</li><li>Ease of Use: It’s straightforward to set up and manage, making it ideal for smaller clusters or those new to container orchestration.</li><li>Features: Includes built-in load balancing, scaling, rolling updates, and secure communication with TLS.</li><li>Simplicity: Best suited for simpler use cases or when a lightweight orchestration tool is needed.</li></ul><h4>2. Kubernetes</h4><ul><li>Industry Standard: Kubernetes is the most widely used container orchestration tool, offering robust features and a large community.</li><li>Scalability and Flexibility: Designed for complex applications and large-scale deployments, providing advanced features like self-healing, automatic scaling, and extensive networking options.</li><li>Declarative Configuration: Uses YAML files to define the desired state of the cluster, allowing for greater automation and repeatability.</li><li>Ecosystem: Supported by a vast ecosystem of tools and integrations, making it highly extensible.</li></ul><h4>3. Amazon ECS (Elastic Container Service)</h4><ul><li>AWS Integration: Deeply integrated with other AWS services, making it a good choice for users already on AWS.</li><li>Managed Service: Provides a managed orchestration service, reducing the operational burden on users.</li><li>Features: Supports tasks definition, service scaling, load balancing, and tight integration with AWS IAM for security.</li></ul><h4>4. Apache Mesos with Marathon</h4><ul><li>Resource Management: Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications or frameworks.</li><li>Scalability: Can handle a large number of nodes and containers, suitable for big data and machine learning workloads.</li><li>Marathon: A container orchestration tool on top of Mesos, used to manage and schedule containerized applications.</li></ul><h4>5. Nomad</h4><ul><li>Simplicity and Flexibility: Developed by HashiCorp, Nomad is known for its simplicity and flexibility, supporting multiple workloads beyond containers (e.g., VMs, batch jobs).</li><li>Single Binary: Lightweight and easy to deploy, operating as a single binary with no external dependencies.</li><li>Integration: Works well with other HashiCorp tools like Consul for service discovery and Vault for secrets management.</li></ul><p><strong>Comparison Table:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JNpV4-eUgQvaMCmXXkEtHQ.png" /></figure><h4>Advantage of Docker orchestration tool:</h4><ol><li>Scalability: Easily scale applications up or down by adding or removing containers as needed, ensuring that resources are used efficiently.</li><li>High Availability: Orchestration tools manage container health and automatically replace failed containers, maintaining the availability of services.</li><li>Load Balancing: Automatically distribute traffic across multiple containers to ensure even load distribution and optimal performance.</li><li>Simplified Deployment: Automate the deployment process, making it easy to roll out new versions, updates, or patches with minimal downtime.</li><li>Resource Management: Efficiently allocate resources such as CPU and memory across containers, maximizing utilization and performance.</li><li>Service Discovery and Networking: Automatically manage container networking and enable seamless communication between containers using built-in service discovery mechanisms.</li><li>Consistency: Ensure consistent deployment environments across development, testing, and production, reducing the “it works on my machine” problem.</li><li>Security: Enhance security through features like mutual TLS authentication between nodes, secure communication, and isolated networks for containers.</li><li>Automated Rollbacks: Quickly roll back to a previous version if an update fails, minimizing the impact of deployment issues.</li><li>Centralized Management: Manage a cluster of Docker nodes as a single entity, simplifying the monitoring and management of containerized applications.</li><li>Flexibility: Deploy containers across various environments, including laptops, on-premises servers, and public or private clouds, providing a consistent runtime environment.</li></ol><h4>Conclusion</h4><p>Choosing the right orchestration tool depends on your specific requirements:</p><ul><li>Docker Swarm is ideal for those who need a simple, integrated solution with Docker.</li><li>Kubernetes is best for complex, large-scale applications needing advanced orchestration features.</li><li>Amazon ECS suits users deeply integrated into the AWS ecosystem.</li><li>Mesos + Marathon and Nomad offer flexibility and scalability for diverse workloads, with Nomad being particularly simple to deploy and manage.</li></ul><p>Each tool has its strengths and is suited to different types of environments and use cases.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=564850c82d48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Fundamentals]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/docker-fundamentals-9548faedf7fb?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/9548faedf7fb</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Wed, 29 May 2024 09:58:03 GMT</pubDate>
            <atom:updated>2024-05-30T08:43:30.139Z</atom:updated>
            <content:encoded><![CDATA[<p>Traditional infrastructure, often referred to as on-premises infrastructure, includes physical servers, storage devices, networking hardware, and other equipment housed and maintained within a company’s premises. While this type of infrastructure has been the backbone of enterprise IT for decades, it comes with several challenges like High Initial Costs, Scalability Issues, complex Management, Disaster Recovery and Backup etc.</p><p>Why do you need to use docker?</p><p>Docker has become a crucial tool in modern software development and deployment for several reasons. Here are the key benefits and reasons why organizations and developers use Docker:</p><ol><li>Consistent Development Environment</li></ol><p>Isolation: Docker containers encapsulate all dependencies and configurations required for an application to run, ensuring it behaves the same way in any environment (development, testing, production)</p><p>Environment Parity: Developers can create a development environment that mirrors the production environment, reducing the “it works on my machine” problem.</p><p>2.Improved Resource Utilization:</p><p>Efficiency: Docker containers share the host system’s kernel, making them more lightweight than traditional virtual machines (VMs) and allowing for higher density and better resource utilization.</p><p>Fast Startup: Containers start almost instantly, compared to VMs that require booting an entire OS, facilitating quicker development and deployment cycles.</p><p>3.Enhanced Scalability:</p><p>Microservices Architecture: Docker makes it easier to implement microservices architectures, where each service runs in its own container, enabling independent scaling and updates.</p><p>Orchestration: Tools like Kubernetes and Docker Swarm provide powerful orchestration capabilities, allowing for automated scaling, deployment, and management of containerized applications.</p><p>4.Simplified Deployment and Rollback:</p><p>Immutable Deployments: Docker images are immutable, ensuring that the same image is deployed across different stages</p><p><strong>Advantages of Docker:</strong></p><ol><li>Cross-platform consistency: Ensuring compatibility across various systems and environments simplifies the work for developers.</li><li>Efficient storage: Docker containers are cloud-based and run reliably without needing extensive active memory.</li><li>Rapid deployment: Streamlining installations and configurations reduces deployment time, making it fast and effortless.</li><li>Versatility and scalability: Developers have the freedom to utilize any programming language and adjust container resources according to demand, facilitating flexibility and scalability.</li></ol><p><strong>Understand Docker Architecture &amp; Docker Terminology</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*K_b_PH4mzUTccgHH.png" /></figure><ol><li>Docker Daemon:</li></ol><p>The Docker daemon, also known as dockerd, is a persistent background process that manages Docker containers. It is responsible for handling various Docker commands, such as creating, running, stopping, and deleting containers, as well as managing Docker images, networks, and volumes.</p><p>The Docker daemon listens for Docker API requests and performs the necessary actions to execute those requests. It communicates with the Docker client, which is a command-line interface or other client applications, to send commands and receive responses.</p><p>2. Docker Client:</p><p>The Docker client is a command-line interface (CLI) tool that allows users to interact with the Docker daemon and manage Docker containers, images, networks, volumes, and other Docker resources. It provides a convenient way to issue commands to the Docker daemon and receive responses.</p><p>3. Docker Images:</p><p>Docker images are lightweight, standalone, executable packages that contain everything needed to run a piece of software, including the code, runtime, libraries, dependencies, and system tools. They are the building blocks used to create Docker containers, which are instances of running Docker images.</p><p>4. Docker Container:</p><p>Docker containers are lightweight, standalone, and executable runtime instances of Docker images. They encapsulate an application along with its dependencies, libraries, and runtime environment, allowing the application to run consistently across different computing environments.</p><p>5. Docker Registry or Docker hub:</p><p>Docker Registry, commonly referred to as Docker Hub, is a cloud-based service provided by Docker, Inc. that serves as a central repository for Docker images. It allows developers to store, share, and manage Docker images, making it easier to distribute containerized applications and components.</p><p>6.Docker Swarm:</p><p>Docker Swarm is a native clustering and orchestration tool for Docker containers. It allows you to manage a cluster of Docker nodes as a single virtual system. Docker Swarm turns a pool of Docker hosts into a single, virtual Docker host.</p><p><strong>Limitation and challenges of Docker:</strong></p><ol><li>Complex Networking: Docker’s networking capabilities can be complex to configure and manage, especially in larger deployments or across multiple hosts. Issues such as network isolation, port conflicts, and DNS resolution can arise, requiring careful planning and configuration.</li><li>Resource Overhead: Docker introduces some overhead due to the use of containerization technology. While containers are generally lightweight compared to virtual machines, there is still some resource overhead associated with running Docker containers, especially when many containers are deployed on a single host.</li><li>Security Concerns: Although Docker provides isolation between containers, vulnerabilities in container images or misconfigurations can still pose security risks. Additionally, shared kernel resources can potentially be exploited to gain unauthorized access to the host system or other containers.</li><li>Limited Windows Support: While Docker is primarily designed for Linux-based systems, it also supports running containers on Windows. However, Docker for Windows has historically lagged behind its Linux counterpart in terms of features and stability, and some features may not be fully supported on Windows.</li><li>Persistence and Storage: Docker containers are ephemeral by default, meaning that any data written to the container’s filesystem is lost when the container is stopped or deleted. Managing persistent data and storage volumes can be challenging, especially in distributed or stateful applications.</li><li>Tooling Ecosystem Fragmentation: Docker has a large and rapidly evolving ecosystem of tools and technologies, which can lead to fragmentation and compatibility issues. Different tools may have overlapping or conflicting features, making it challenging to choose the right tool for a given task.</li><li>Lack of GUI Interface: Docker primarily relies on command-line interfaces (CLIs) for management and administration, which may not be as intuitive or user-friendly as graphical user interfaces (GUIs) for some users.</li></ol><p>In conclusion, Docker has revolutionized the way software is developed, deployed, and managed by providing a lightweight, portable, and consistent environment for running applications. Its containerization technology offers numerous benefits, including increased efficiency, scalability, and portability, which have made it a cornerstone of modern DevOps practices.</p><p>However, Docker also comes with its own set of challenges, such as complexity in networking, security concerns, and learning curve, which require careful consideration and planning to overcome effectively. Despite these challenges, Docker’s vibrant ecosystem, extensive tooling, and active community support continue to drive innovation and adoption in the software industry.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9548faedf7fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fundamentals of Datadog]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/fundamentals-of-datadog-d08c36e41dd1?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/d08c36e41dd1</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Tue, 28 May 2024 03:23:46 GMT</pubDate>
            <atom:updated>2024-05-28T03:23:46.124Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital era, where the performance and reliability of web services and applications are critical, monitoring and analytics tools are indispensable. Datadog has become a popular choice in this realm, providing comprehensive solutions for monitoring servers, databases, tools, and various services.</p><p><strong>Datadog: </strong><br>Datadog is a monitoring and analytics platform designed for IT and DevOps teams, enabling them to track performance metrics and monitor events across infrastructure and cloud services. This software can oversee a range of services, including servers, databases, and various tools.</p><p><strong>Functionality of Datadog:</strong></p><p>Datadog is a cloud-based monitoring and analytics platform designed to help companies ensure their applications and services run smoothly. At its core, Datadog provides real-time monitoring of servers, databases, and various other tools and services across IT infrastructure.</p><p>It offers visibility into application performance, enabling businesses to detect and address issues before they impact users. By collecting, searching, and analyzing traces across distributed architectures, Datadog delivers critical insights into IT operations and performance, essential for maintaining system health and efficiency.</p><p><strong>Key features of Datadog:</strong></p><p><strong>Real-Time Performance Monitoring: </strong>Continuously monitors applications, services, and infrastructure to ensure operational continuity.</p><p><strong>Alerts and Notifications: </strong>Provides automated alerts for any detected issues or anomalies.</p><p><strong>Customizable Dashboards:</strong> Allows users to create and customize dashboards to visualize real-time data tailored to their specific needs.</p><p><strong>Integration Capabilities:</strong> Integrates with a wide range of popular tools and services, enhancing its monitoring capabilities.</p><p><strong>Log Management:</strong> Offers efficient log management and analysis for troubleshooting and security purposes.</p><p><strong>Application Performance Management (APM):</strong> Provides detailed insights into application performance to optimize the user experience.</p><p><strong>Cloud and On-Premise Monitoring:</strong> Offers flexibility to monitor cloud-based, on-premise, or hybrid infrastructures.</p><p><strong>Datadog’s Commitment to Security:</strong></p><p><strong>Data Encryption: </strong>Datadog employs industry-standard encryption technologies to protect data both in transit and at rest, safeguarding your monitoring data from interception and unauthorized access.</p><p><strong>Access Controls:</strong> Datadog provides robust access control features, allowing enterprises to determine who can access and modify monitoring data. Fine-grained rights management is facilitated through role-based access control (RBAC).</p><p><strong>Authentication: </strong>Multi-factor authentication (MFA) is supported, offering an additional layer of security for user accounts and significantly reducing the risk of unauthorized access.</p><p><strong>Data Separation:</strong> Datadog ensures data separation among different enterprises using the platform, maintaining the privacy and security of your monitoring data by keeping it separate from that of other users.</p><p><strong>Audit Trails: </strong>Datadog maintains comprehensive audit trails, enabling enterprises to track changes and access to monitoring data. This is particularly valuable for compliance and security monitoring purposes.</p><p><strong>Pros of Datadog:</strong></p><p><strong>Comprehensive Monitoring and Analytics</strong></p><ul><li>Unified Platform: Datadog provides a single platform to monitor servers, databases, applications, and more, offering a holistic view of your infrastructure.</li><li>Real-Time Visibility: It offers real-time monitoring and alerting, enabling quick detection and resolution of issues.</li></ul><p><strong>Ease of Integration</strong></p><ul><li>Wide Range of Integrations: Datadog integrates with over 400 services and platforms, including AWS, Azure, GCP, Docker, Kubernetes, and various third-party tools.</li><li>Simple Setup: The agent installation and setup process is straightforward, and many integrations can be configured with minimal effort.</li></ul><p><strong>Customizable Dashboards</strong></p><ul><li>Flexible Dashboards: Users can create and customize dashboards to display metrics, logs, and traces that matter most to them.</li><li>Rich Visualizations: Datadog offers various visualization options, including graphs, heat maps, and network diagrams.</li></ul><p><strong>Advanced Features</strong></p><ul><li>APM and Distributed Tracing: Application Performance Monitoring (APM) and distributed tracing help in understanding the performance of applications and diagnosing issues.</li><li>Machine Learning: Datadog employs machine learning for anomaly detection and forecasting, improving predictive maintenance.</li></ul><p><strong>Security and Compliance</strong></p><ul><li>Robust Security: Datadog includes features like data encryption, role-based access control (RBAC), and multi-factor authentication (MFA) to ensure data security.</li><li>Compliance: It provides comprehensive audit trails and supports compliance with various standards.</li></ul><p><strong>Scalability</strong></p><ul><li>Scalable Solution: Datadog is designed to scale with your infrastructure, handling everything from small setups to large, complex environments.</li></ul><p><strong>Cons of Datadog:</strong></p><p><strong>Cost</strong></p><ul><li>Pricing: Datadog can be expensive, especially for smaller organizations or those with large-scale deployments. Costs can quickly add up with the addition of various integrations and advanced features.</li><li>Complex Pricing Model: The pricing structure can be complex, making it challenging to predict costs accurately.</li></ul><p><strong>Learning Curve</strong></p><ul><li>Complexity: While Datadog is powerful, it can be complex to set up and use effectively, requiring a certain level of expertise to fully leverage its capabilities.</li><li>Documentation: Although comprehensive, the documentation can sometimes be overwhelming, especially for new users.</li></ul><p><strong>Performance Overhead</strong></p><ul><li>Resource Usage: The Datadog agent can consume significant system resources, which may impact the performance of the monitored systems, particularly in resource-constrained environments.</li></ul><p><strong>Alert Fatigue</strong></p><ul><li>Alerting: If not configured carefully, the alerting system can generate a high volume of alerts, leading to alert fatigue and potentially causing important alerts to be missed.</li></ul><p><strong>Customization Limitations</strong></p><ul><li>Customization: While dashboards are highly customizable, some users may find limitations in the level of customization available for certain advanced use cases.</li></ul><p><strong>Data Retention</strong></p><ul><li>Retention Policies: The default data retention policies may not meet the needs of all organizations, and extending data retention can increase costs.</li></ul><p><strong>Conclusion:</strong></p><p>Datadog is a robust and versatile monitoring and analytics platform that excels in providing comprehensive visibility into complex infrastructures. Its extensive integration capabilities, real-time monitoring, and advanced features make it a valuable tool for many organizations. However, the potential downsides, such as cost, complexity, and resource usage, should be carefully considered to determine if Datadog is the right fit for your specific needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d08c36e41dd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Various Categories of Software Deployment Strategies (part 3)]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/various-categories-of-software-deployment-strategies-part-3-4df2dbe4a3fd?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/4df2dbe4a3fd</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Wed, 08 May 2024 11:45:05 GMT</pubDate>
            <atom:updated>2024-05-08T11:45:05.031Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>In-place deployment:</strong></p><p>In an in-place deployment, the new version of the software is deployed directly to the existing production environment without creating additional environments.</p><p>This approach can be simpler to manage but may involve downtime or service interruption during the deployment process.</p><p>It is typically used for smaller applications or when the downtime can be scheduled without significant impact.</p><p><strong>Pros of in -place deployment:</strong></p><p>Simplicity: In-place deployment is straightforward and easy to implement since it involves updating the existing version of the software directly in the production environment without the need for additional infrastructure or environments.</p><p>Cost-Effective: It can be cost-effective as it doesn’t require provisioning or maintaining separate environments for deployment, saving on infrastructure costs.</p><p>Minimal Infrastructure Overhead: Since in-place deployment utilizes the existing infrastructure, there is minimal overhead in terms of resource utilization and management.</p><p>Quick Deployment: In-place deployment can be faster than other deployment methods since it involves updating the live environment directly without the need for additional steps or processes.</p><p>Immediate Updates: Changes made through in-place deployment take effect immediately, allowing users to access new features or bug fixes without delay.</p><p><strong>Cons of in-place deployment:</strong></p><p>Downtime Risk: In-place deployment may require service downtime during the deployment process, which can impact users’ access to the application or service.</p><p>Limited Rollback Options: Rollbacks in in-place deployment can be challenging, especially if the deployment process introduces irreversible changes or if rollback mechanisms are not well-defined.</p><p>Increased Risk of Errors: Since in-place deployment directly modifies the live environment, there is an increased risk of introducing bugs, errors, or compatibility issues that may affect users’ experience.</p><p>Lack of Testing Environment: In-place deployment may not provide a dedicated testing environment for validating changes before deploying them to the live environment, increasing the likelihood of unexpected issues.</p><p>Dependency Challenges: In-place deployment may encounter challenges related to dependencies, especially if the new version of the software relies on specific configurations or libraries that are not compatible with the existing environment.</p><p><strong>Feature Flag Deployment:</strong><br>Feature flags allow developers to toggle features on or off at runtime, independent of code deployment.</p><p>New features can be deployed to production but kept hidden behind feature flags until they are ready for release.</p><p>This enables gradual feature rollout and A/B testing, giving developers more control over the release process.</p><p>These deployment strategies offer different approaches to managing software releases, each suited to specific scenarios and requirements.</p><p><strong>Pros of feature flag deployment:</strong></p><p>Gradual Rollout: Feature flag deployment allows for gradual rollout of new features to a subset of users or segments, enabling developers to monitor and test the functionality in real-world scenarios before a full release.</p><p>Risk Mitigation: By controlling feature availability through flags, developers can mitigate the risk of releasing unstable or untested features to all users, minimizing the impact of potential bugs or issues.</p><p>A/B Testing: Feature flags facilitate A/B testing, where different variations of a feature can be tested simultaneously on different user groups to gather feedback and data on performance, usability, and user preferences.</p><p>Continuous Deployment: Feature flags support continuous deployment practices by decoupling feature releases from code deployments. This allows developers to deploy features independently of each other, reducing the time and effort required for deployment.</p><p>Rollback Capability: In case of issues with a feature, feature flag deployment enables quick rollback by simply toggling off the flag, reverting the application to its previous state without the need for a full code rollback.</p><p><strong>Cons of feature flag requirements:</strong></p><p>Increased Complexity: Implementing and managing feature flags can add complexity to the codebase and development process, requiring careful planning and coordination to ensure flags are properly implemented, toggled, and maintained.</p><p>Technical Debt: Over time, the proliferation of feature flags can lead to technical debt if not managed properly. Unused flags may accumulate, cluttering the codebase and increasing maintenance overhead.</p><p>Performance Overhead: Introducing feature flags may introduce performance overhead, as the application must evaluate the state of each flag for every user request, potentially impacting response times, especially if there are a large number of flags.</p><p>Testing Challenges: Testing feature-flagged code can be challenging, as developers must consider various combinations of feature states and interactions, increasing the complexity and scope of testing efforts.</p><p>Security Risks: Improperly managed feature flags may pose security risks if sensitive features or data are inadvertently exposed to unauthorized users due to misconfigured flags or implementation errors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4df2dbe4a3fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Various Categories of Software Deployment Strategies (part 2)]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/various-categories-of-software-deployment-strategies-part-2-6c6c7ea53b9a?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c6c7ea53b9a</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Wed, 08 May 2024 11:44:52 GMT</pubDate>
            <atom:updated>2024-05-08T11:44:52.076Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Rolling Deployment:</strong></p><p>Rolling Deployment shares similarities with Canary Deployment. However, the key distinction lies in the fact that, in rolling deployment, we update the newer version across a limited or specified number of instances sequentially.</p><p>This deployment strategy ensures that the application remains available throughout the deployment process. Each instance is updated, verified, and then moved to the next, ensuring minimal downtime and risk.</p><p>Rolling deployment mechanism:</p><p>Assume this is your application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*ntvGVv7XMXhuCju7lILwXg.png" /></figure><p>We are going to deploy new version, start by deploying additional node containing the new functionality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*KaRE-bRuIV2UH57LITBabg.png" /></figure><p>Adjust the system configuration to swap out one of the existing nodes with the new node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*Msn54V26f3BuVUos10H3OA.png" /></figure><p>the new version of the application is operational alongside the old version, albeit on a limited scale. You can choose to decommission the unused old node promptly or opt to observe and evaluate the performance of the new node for a period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*azqYRasN1m0V7rHANv4TdQ.png" /></figure><p>Utilize this approach to systematically substitute the remaining old nodes, one at a time. Gradually, the new nodes will supplant all of the old ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*bn2__U7ujCQ-9z0vU5kpsg.png" /></figure><p>At this juncture, the rolling deployment process has been finalized. The new version of the application is now operational throughout the entire system. It’s evident that this method involves a relatively intricate deployment orchestration.</p><p><strong>Advantages of using Rolling deployment:</strong></p><p>Limited Downtime: Batch deployments minimize downtime by directing traffic to the new version only when it’s fully prepared.</p><p>Lower Risk: Since these are batch deployments, the chance of faulty updates impacting a large user base is reduced. Additionally, this method guarantees backward compatibility, enabling smooth coexistence with older versions.</p><p>Adaptability: Rolling deployment provides flexibility by enabling the team to stagger changes and monitor new environments while the old ones are still being updated. It also facilitates straightforward rollback to a prior version if needed during deployment.</p><p>Cons of using Rolling deployment:</p><p>Scalability: Rolling deployment might not suit applications needing high scalability. Due to the batch upgrading of nodes, it may struggle to manage traffic spikes when multiple nodes are offline.</p><p>Backward Compatibility: Ensuring backward compatibility can lead to intricate code maintenance. Developers must ensure seamless interaction between new and old versions, posing challenges, especially with significant updates.</p><p>Complexity: Managing a rolling deployment, especially with numerous nodes, can be intricate. Monitoring and coordinating various stages demand significant attention and effort, raising the risk of human error.</p><p>Slow Deployment: Rolling deployments can be time-consuming due to the batch nature. The incremental process may prolong the deployment, unsuitable for applications requiring swift rollout.</p><p><strong>Rollback Deployment:</strong></p><p>Rollback deployment is not exactly a deployment strategy but a contingency plan.</p><p>In the event of a deployment failure or if issues are detected post-deployment, the system can be rolled back to the previous version.</p><p>This involves reverting any changes made during the deployment process to restore the system to its previous state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*xMWZL9kYaXn1lc9g.png" /></figure><p><strong>Working of Rollback deployment:</strong></p><p>To revert a deployment, you can execute a rollback to remove the deployed versions from the designated repository or directory. When initiating a rollback, it encompasses all objects within a deployment group deployed at a specific timestamp. Partial rollbacks or rollbacks from non-versioned repositories are not supported.</p><p>Rolling back entails reverting to the latest version of each object. The Repository Service ensures synchronization between the check-in time for repository objects and the deployment time. Any discrepancy in timing between the repository object and the deployed object results in rollback failure. Additionally, the rollback process fails if it generates duplicate object names, which may happen when renaming a deployed object, creating a new object with the same name, and attempting to revert the original deployment.</p><p><strong>Pros of Rollback deployment:</strong></p><p>Reversibility: Rollback deployment provides a safety net by allowing the system to revert to a previous state in case of issues or failures during the deployment process. This helps mitigate risks associated with deploying new updates.</p><p>Quick Recovery: In the event of a deployment failure, rollback deployment enables quick recovery to a known working state, minimizing downtime and reducing the impact on users or customers.</p><p>Risk Reduction: Knowing that a rollback option is available can encourage teams to adopt more aggressive deployment strategies, as they have the confidence that they can quickly recover from any adverse effects.</p><p>Incremental Updates: Rollback deployment allows for incremental updates, where changes are applied in stages. This approach can help in identifying issues early and containing their impact before rolling out updates to the entire system.</p><p><strong>Cons of rollback deployment:</strong></p><p>Complexity: Implementing rollback deployment adds complexity to the deployment process, as it requires maintaining and managing multiple versions of the application or system. This complexity can increase over time as the number of deployments and rollback points grows.</p><p>Resource Overhead: Rollback deployment may require additional resources to maintain multiple versions of the application or system concurrently. This can result in increased storage, compute, and management overhead.</p><p>Version Control Challenges: Managing multiple versions of the application or system, including dependencies and configurations, can introduce challenges in version control and dependency management. Keeping track of which version is deployed where and ensuring consistency across environments can be demanding.</p><p>Limited Scope: Rollback deployment may not be feasible for all types of changes, particularly if the changes are irreversible or have significant dependencies that cannot be easily rolled back. In such cases, alternative strategies may need to be considered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c6c7ea53b9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Various Categories of Software Deployment Strategies (part 1)]]></title>
            <link>https://medium.com/@rushikeshmahindrakar26/various-categories-of-software-deployment-strategies-part-1-e18230009210?source=rss-1dc5a61570ac------2</link>
            <guid isPermaLink="false">https://medium.com/p/e18230009210</guid>
            <dc:creator><![CDATA[Rushikesh Mahindrakar]]></dc:creator>
            <pubDate>Wed, 08 May 2024 11:44:34 GMT</pubDate>
            <atom:updated>2024-05-08T11:44:34.780Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Deployment:</strong></p><p>Deployment involves updating code and performing other server activities to ensure software is ready for use.</p><p>Given the present circumstances, there’s a rising need for continuous deployment to keep pace with software updates, ensuring users enjoy a high-quality application experience.</p><ol><li><strong>Canary Deployment:</strong></li></ol><p>A canary deployment is a method that exposes a new feature to an early sub-segment of users. The goal is to test new functionality on a subset of customers before releasing it to the entire user base.</p><p><strong>Canary release:</strong></p><p>A canary release allows for testing an initial version of an entire application by dividing stable and development branches. Numerous open-source projects adopt an odd/even numbering system to distinguish between stable and non-stable versions.</p><p><strong>Canary deployment:</strong></p><p>Canary deployment entails installing the update into a system and dividing users into two groups. A small percentage utilizes the canary version, while the remaining users continue with the old version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*fMBu8P4IkYI867Bj.png" /></figure><p><strong>Understanding the Mechanism of Canary Deployments:</strong></p><p>Initially, 100% of user traffic is directed to the current version. Then, a new deployment, known as the “canary,” is initiated with fresh pods, receiving only a small portion of traffic, typically 5%, while the majority, 95%, remains on the older version.</p><p>Various tests, such as smoke tests, can be conducted on the new version without affecting most users.</p><p>An automated decision-making process determines the allocation of traffic between the current version and the canary. If the new version performs as expected, a progressively larger portion of live traffic is routed to it, repeating the process for different percentages of canary traffic (e.g., 5%, 25%, 50%, 75%, 100%). I</p><p>n case of issues with the new version, the service is reverted back to the original version with minimal impact on most users.</p><p>The canary version is then eliminated, restoring everything to its initial state. Ultimately, 100% of traffic is directed to the new version, and the old version can be phased out.</p><p><strong>Canary deployment benefits:</strong></p><p>A/B Testing: Utilizing the canary method allows for A/B testing, where two alternatives are presented to users to gauge their reception.</p><p>Capacity Testing: Canary deployments inherently include capacity tests, addressing the challenge of testing large production environments. Any performance issues emerge gradually as users are migrated to the canary.</p><p>Feedback: Real users provide invaluable input during canary deployments.</p><p>No Cold Starts: Canary deployments gradually gain momentum, avoiding the slowness associated with cold starts in new systems.</p><p>No Downtime: Similar to blue-green deployments, canary deployments avoid downtime.</p><p>Easy Rollback: In case of issues, rolling back to the previous version is straightforward with canary deployments.</p><p><strong>Downside of Canary deployments:</strong></p><p>Frustration: The initial users in the canary group may encounter the most severe bugs. Additionally, some users might be disconcerted to discover they were essentially serving as test subjects.</p><p>Costs: Side-by-side deployments incur higher costs due to the need for additional infrastructure. Leverage the cloud’s capabilities to your advantage by provisioning and decommissioning resources as needed, thus minimizing expenses.</p><p>Time: Establishing a robust canary deployment pipeline requires dedication and effort. However, once perfected, it enables more frequent and secure deployments.</p><p>Complexity: Canary deployments pose similar challenges to blue-green deployments. Tasks such as managing numerous production machines, transitioning users, and monitoring the new system are intricate. It’s crucial to avoid manual execution of these tasks whenever possible.</p><p><strong>2. Blue green deployment:</strong></p><p>In a blue-green deployment, there are two identical production environments: one active (blue) and one inactive (green).</p><p>The current version of the software runs in the active environment (blue), while the new version is deployed and tested in the inactive environment (green).</p><p>Once the new version passes testing and is deemed ready for production, traffic is switched from the active environment (blue) to the inactive one (green), making the new version live.</p><p>Blue-green deployments offer minimal downtime and easy rollback in case of issues since the previous version is still running in the inactive environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*Xfr4cb4DfTfIZGb4-Q05tA.png" /></figure><p><strong>Understanding of working of Blue green deployment:</strong></p><p>For Blue-Green deployment to be implemented, two identical environments are necessary. Additionally, a Router or Load Balancer is required to direct traffic to the intended environment.</p><p>In the illustration, we observe two production environments: Blue and Green. The Blue environment hosts the current version (e.g., version 1) of the application, which is live and receives all application traffic through the Router or load balancer. Concurrently, version 2 of the application undergoes deployment and testing in the Green Environment.</p><p>At this point, we can designate the Blue environment as Live and the Green environment as idle or in a staging state.</p><p>When the code for version 2 has been thoroughly tested and is prepared for production, we shift traffic from the Blue Environment to the Green Environment, effectively making Green the new Live environment and Blue as the staging environment. Should any issues arise with the infrastructure or application after version 2 goes live, we can easily revert to the previous version by simply swapping the environments.</p><p><strong>Blue green deployment benefits:</strong></p><p>Zero Downtime Deployment: Blue-Green Deployment ensures that in the event of a critical bug on the production server, traffic is seamlessly rerouted to other environments, thus avoiding any downtime for end-users.</p><p>Standby Capability: In case of system failure, immediate rollback and recovery can be executed without disrupting end-users. With Blue-Green deployment, the previous version of the application remains available even after switching to the new version. Consequently, in the event of recovery, environment swapping and traffic redirection back to the old version can be easily accomplished. Blue-Green deployment has proven to be highly effective in mitigating risks in the application development process.</p><p>Instant Rollback: In situations where a new feature malfunctions, reverting to the previous version of the application can be swiftly achieved through rollback procedures.</p><p>Testing in Production Environment: There are instances where deploying new code appears to function adequately in a local environment but presents issues when deployed in a larger infrastructure. Blue-Green Deployment facilitates the assessment of code performance on the production server without impacting users.</p><p>Disadvantages of blue green deployment:</p><p>Database Synchronization: Decoupling schema changes can be challenging. With Blue-Green deployment, ensuring synchronization of database and data changes between the Blue and Green environments is crucial. In relational databases, this can result in discrepancies.</p><p>Identification of QA/UAT Failures: In certain scenarios, particularly with large infrastructures, QA test cases may occasionally fail to detect errors or bugs in non-live environments.</p><p>Necessity of Dashboards: Given two identical production environments hosting different code versions, it’s essential to monitor insights into packages and code throughout the deployment process to facilitate timely actions.</p><p>Cost Considerations: Blue-Green Deployment entails maintaining two sets of environments concurrently, thereby increasing the operational costs associated with running and managing dual production environments.</p><p>In this block I have explained 2 types remaining explaining you in second part. Thank you for reading my blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e18230009210" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>