<?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 Vaibhav Satish Devshatwar on Medium]]></title>
        <description><![CDATA[Stories by Vaibhav Satish Devshatwar on Medium]]></description>
        <link>https://medium.com/@vsdevshatwar?source=rss-bae294a39b2d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zPoszHs1CToQmFrH</url>
            <title>Stories by Vaibhav Satish Devshatwar on Medium</title>
            <link>https://medium.com/@vsdevshatwar?source=rss-bae294a39b2d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:01:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vsdevshatwar/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[“Ensuring Maximum Uptime: A Guide to Configuring and Managing ETCD in High Availability Mode for…]]></title>
            <link>https://medium.com/@vsdevshatwar/ensuring-maximum-uptime-a-guide-to-configuring-and-managing-etcd-in-high-availability-mode-for-c18b6623b0fd?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/c18b6623b0fd</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Thu, 04 May 2023 17:41:08 GMT</pubDate>
            <atom:updated>2023-05-04T17:41:08.239Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Ensuring Maximum Uptime: A Guide to Configuring and Managing ETCD in High Availability Mode for Kubernetes”</h3><p>Introduction</p><p>ETCD is a distributed key-value store used by Kubernetes to store and manage configuration data. It is a critical component of the Kubernetes control plane, and ensuring maximum uptime for ETCD is essential for the overall stability of a Kubernetes cluster. In this guide, we will discuss how to configure and manage ETCD in high availability (HA) mode for Kubernetes.</p><h3>Prerequisites</h3><p>Before we begin, you should have a basic understanding of Kubernetes and how it works. You should also have a Kubernetes cluster set up and running, with at least three nodes. Additionally, you should have SSH access to each node.</p><h4>Step 1: Install ETCD</h4><p>The first step in configuring ETCD for Kubernetes is to install it on each node in the cluster. ETCD can be installed using a package manager such as apt or yum, or by downloading and installing it manually.</p><p>After installing ETCD, you should start the service and enable it to start automatically on boot.</p><h3>Step 2: Configure ETCD</h3><p>Next, you need to configure ETCD to run in HA mode. In this mode, each node in the cluster runs a separate instance of ETCD, and the data is replicated between the nodes.</p><p>To configure ETCD for HA, you need to create a configuration file that specifies the nodes in the cluster and their roles. This configuration file should be the same on each node.</p><blockquote><strong><em>The configuration file should contain the following information:</em></strong></blockquote><ul><li>The name and IP address of the node.</li><li>The names and IP addresses of the other nodes in the cluster.</li><li>The advertise and client URLs for this node.</li><li>The initial cluster state.</li></ul><p>Once you have created the configuration file, you can start ETCD.</p><h3>Step 3: Verify ETCD</h3><p>After starting ETCD, you can verify that it is running and in HA mode by using the etcdctl command-line tool. You can use etcdctl to retrieve the list of nodes in the cluster, as well as to store and retrieve data from the key-value store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*rN39jBCfk4-skkS-XUyt8w.png" /></figure><h4>Conclusion</h4><p>In this guide, we discussed how to configure and manage ETCD in high availability mode for Kubernetes. By following these steps, you can ensure maximum uptime for your ETCD cluster, which is essential for the overall stability of your Kubernetes cluster.</p><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c18b6623b0fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Understanding Kubernetes CNI: A Deep Dive into Container Networking Interface”]]></title>
            <link>https://medium.com/@vsdevshatwar/understanding-kubernetes-cni-a-deep-dive-into-container-networking-interface-dab0e6b517e7?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dab0e6b517e7</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Thu, 04 May 2023 17:26:13 GMT</pubDate>
            <atom:updated>2023-05-04T17:26:59.949Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Kubernetes is a powerful container orchestration platform that enables organizations to deploy and manage containerized applications at scale. One of the key components of Kubernetes is the Container Networking Interface (CNI), which provides a standardized way for containers to communicate with each other and with external networks. In this blog post, we will take a deep dive into Kubernetes CNI and explore its architecture, key components, and how it works.</p><h4><strong><em>What is CNI?</em></strong></h4><p>CNI is a networking specification for container runtimes that defines how to configure the network interfaces of containers, create virtual network segments, and connect them to the physical network. It provides a standardized interface between container runtimes and network plugins, enabling containers to be connected to different network technologies and network topologies.</p><h4><strong><em>CNI Architecture:</em></strong></h4><blockquote><strong><em>The CNI architecture consists of three main components:</em></strong></blockquote><ol><li>Container Runtime: The container runtime is responsible for starting and managing the containers. It communicates with the CNI plugins to configure the network interfaces of the containers.</li><li>CNI Plugins: CNI plugins are responsible for configuring the network interfaces of the containers. They create and manage virtual network segments and connect them to the physical network. CNI plugins can be either statically linked or dynamically loaded.</li><li>Network Provider: The network provider is responsible for managing the physical network infrastructure, such as switches, routers, and firewalls. It ensures that the virtual network segments created by the CNI plugins are connected to the physical network.</li></ol><h3>How CNI Works:</h3><p>When a container is created, the container runtime invokes the CNI plugin to configure the network interface of the container. The CNI plugin then creates a virtual network segment for the container and assigns an IP address to it. The CNI plugin also creates a network bridge or a virtual Ethernet device to connect the container to the physical network.</p><p>Once the container is connected to the virtual network segment, it can communicate with other containers on the same segment and with external networks through the network provider.</p><h3>CNI Plugins:</h3><p>CNI plugins are responsible for configuring the network interfaces of the containers. They can be either statically linked or dynamically loaded. Some of the popular CNI plugins are:</p><ol><li>Calico: Calico is a CNI plugin that provides network security and policy enforcement for Kubernetes clusters.</li><li>Flannel: Flannel is a CNI plugin that provides overlay networking for Kubernetes clusters.</li><li>Weave Net: Weave Net is a CNI plugin that provides networking and service discovery for Kubernetes clusters.</li></ol><h3>Conclusion:</h3><p>CNI is a critical component of Kubernetes that enables containers to communicate with each other and with external networks. Understanding the architecture and key components of CNI is essential for managing and troubleshooting Kubernetes clusters. With the knowledge gained from this blog post, you should now have a better understanding of how CNI works and how it can be used to create scalable, secure, and flexible container networks in Kubernetes.</p><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dab0e6b517e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Mastering Ansible Playbooks: A Practical Guide to Automating IT Operations”]]></title>
            <link>https://medium.com/@vsdevshatwar/mastering-ansible-playbooks-a-practical-guide-to-automating-it-operations-d82d7ad0f673?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d82d7ad0f673</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Thu, 04 May 2023 17:02:47 GMT</pubDate>
            <atom:updated>2023-05-04T17:27:29.621Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Introduction</em></strong></blockquote><p>Ansible is a powerful configuration management tool that can help streamline IT operations by automating infrastructure and application management. One of Ansible’s core components is the playbook, which enables you to define a set of configuration tasks and apply them to multiple hosts in a repeatable and scalable way. In this blog post, we’ll take a deep dive into Ansible playbooks, exploring their features and use cases, and provide practical tips for mastering them.</p><p><strong><em>What are Ansible Playbooks?</em></strong></p><p>An Ansible playbook is a YAML file that defines a set of tasks to be executed on a host or a group of hosts. Each task is a self-contained configuration action, such as installing a package, modifying a configuration file, or restarting a service. Ansible playbooks can be used for a wide range of tasks, from simple configuration management to complex application deployments.</p><blockquote><strong><em>Playbook Structure</em></strong></blockquote><p>An Ansible playbook consists of a series of tasks, which are executed in order. Each task is defined as a YAML dictionary that contains a set of key-value pairs, including the name of the task, the module to be used, and any arguments or options required by the module.</p><h4><strong><em>Playbook Modules</em></strong></h4><p>Ansible provides a wide range of modules that can be used in playbooks to perform specific configuration actions. Modules are self-contained units of code that can be executed on a remote host and perform a specific task. Some commonly used modules include:</p><ul><li>apt/yum: Manage packages on Debian/Ubuntu and RedHat-based systems</li><li>copy: Copy files to a remote host</li><li>file: Manage files and directories on a remote host</li><li>service: Manage system services on a remote host</li><li>shell/command: Execute shell commands on a remote host</li></ul><h4><strong><em>Variables and Loops</em></strong></h4><p>Ansible playbooks also provide support for variables and loops, which enable you to define dynamic configurations that can be reused across multiple tasks. Variables can be defined at the playbook, host, or group level and can be used to define values that are reused across multiple tasks.</p><h4><strong><em>Error Handling</em></strong></h4><p>Ansible playbooks provide built-in error handling capabilities that can be used to gracefully handle errors that occur during playbook execution. You can use the “failed_when” and “ignore_errors” keywords to control how Ansible handles errors and determine whether a playbook should continue executing or fail.</p><h4><strong><em>Conclusion</em></strong></h4><p>In this blog post, we’ve explored Ansible playbooks, their features, and use cases. Playbooks provide a powerful tool for automating IT operations and can help streamline infrastructure and application management. With a solid understanding of Ansible playbooks, you can create powerful, reusable configurations that can help improve the efficiency and consistency of your IT operations.</p><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d82d7ad0f673" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Terraform vs Ansible: Choosing the Right Tool for Your Infrastructure Automation Needs”]]></title>
            <link>https://medium.com/@vsdevshatwar/terraform-vs-ansible-choosing-the-right-tool-for-your-infrastructure-automation-needs-b17013cb3c13?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b17013cb3c13</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Thu, 04 May 2023 16:45:33 GMT</pubDate>
            <atom:updated>2023-05-04T16:45:33.103Z</atom:updated>
            <content:encoded><![CDATA[<p>Infrastructure automation is an essential component of modern IT operations, enabling organizations to manage their infrastructure and applications in a more scalable, efficient, and consistent way. Two of the most popular infrastructure automation tools are Terraform and Ansible. Both tools have their strengths and weaknesses, and choosing the right tool for your infrastructure automation needs requires a thorough understanding of their capabilities and use cases.</p><p>In this blog post, we’ll take a deep dive into Terraform and Ansible, comparing their features and use cases to help you choose the right tool for your infrastructure automation needs.</p><blockquote><strong><em>Terraform Overview</em></strong></blockquote><p>Terraform is an open-source infrastructure as code (IaC) tool that enables you to define and provision your infrastructure and applications in a declarative way. Terraform uses a domain-specific language (DSL) called HCL (HashiCorp Configuration Language) to define the infrastructure resources and their dependencies. Terraform also provides a state management system that tracks the current state of your infrastructure and manages the changes to it over time.</p><p>Terraform Features and Use Cases</p><p>Terraform is a powerful tool that provides several key features, including:</p><ul><li>Multi-cloud support: Terraform supports multiple cloud providers, including AWS, Azure, Google Cloud, and more.</li><li>Infrastructure as code: Terraform enables you to define your infrastructure resources and their dependencies as code, making it easy to version control, test, and automate your infrastructure.</li><li>Declarative configuration: Terraform uses a declarative approach to infrastructure configuration, meaning that you define the desired state of your infrastructure, and Terraform handles the details of provisioning and configuring the resources to match that state.</li></ul><p>Terraform is best suited for managing large, complex infrastructure environments that require frequent changes and updates. Terraform is particularly well-suited for managing cloud-based infrastructure and is an excellent tool for managing infrastructure across multiple cloud providers.</p><blockquote><strong><em>Ansible Overview</em></strong></blockquote><p>Ansible is an open-source configuration management tool that enables you to automate the configuration and management of your infrastructure and applications. Ansible uses a simple, human-readable language called YAML to define the configuration tasks, and it uses SSH to communicate with the nodes that it manages. Ansible provides a modular architecture that allows you to reuse configuration tasks across multiple playbooks.</p><blockquote><strong><em>Ansible Features and Use Cases</em></strong></blockquote><blockquote><strong><em>Ansible provides several key features, including:</em></strong></blockquote><ul><li>Agentless architecture: Ansible uses an agentless architecture, meaning that you don’t need to install any software on the nodes that it manages.</li><li>Declarative configuration: Ansible uses a declarative approach to configuration management, meaning that you define the desired state of your infrastructure and applications, and Ansible handles the details of making the necessary configuration changes to achieve that state.</li><li>Simple syntax: Ansible uses a simple, human-readable syntax that makes it easy to write and understand configuration tasks.</li></ul><p>Ansible is best suited for managing small to medium-sized infrastructure environments that require frequent configuration changes and updates. Ansible is particularly well-suited for managing on-premises infrastructure and is an excellent tool for automating repetitive configuration tasks.</p><blockquote><strong><em>Comparing Terraform and Ansible</em></strong></blockquote><p>While Terraform and Ansible share some similarities, they are fundamentally different tools that are designed for different use cases. Here are some of the key differences between Terraform and Ansible:</p><ul><li>Infrastructure as code vs. configuration management: Terraform is designed for infrastructure as code, while Ansible is designed for configuration management.</li><li>Declarative vs. procedural: Terraform uses a declarative approach to infrastructure configuration, while Ansible uses a procedural approach.</li></ul><blockquote><strong><em>In conclusion,</em></strong></blockquote><p>Choosing the right infrastructure automation tool depends on your specific needs and use cases. Terraform is well-suited for managing large, complex cloud-based environments that require frequent changes and updates, while Ansible is best for managing smaller on-premises environments with frequent configuration changes. Both tools provide powerful features and can help streamline IT operations, but understanding their differences is essential to make the right choice for your organization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b17013cb3c13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Transforming IT Operations with Ansible Configuration Management: A Comprehensive Guide”]]></title>
            <link>https://medium.com/@vsdevshatwar/transforming-it-operations-with-ansible-configuration-management-a-comprehensive-guide-3d8e43c3b3f3?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d8e43c3b3f3</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Thu, 04 May 2023 16:31:29 GMT</pubDate>
            <atom:updated>2023-05-04T17:28:06.796Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Introduction:</em></strong></blockquote><p>In today&#39;s fast-paced digital world, IT teams need to manage infrastructure and applications efficiently to stay competitive. Configuration management tools like Ansible can help streamline IT operations by automating repetitive tasks, ensuring consistency, and reducing errors. In this blog, we will provide a hands-on guide to Ansible configuration management that will help you automate IT operations in a scalable and efficient way.</p><blockquote><strong><em>Key Principles of Ansible Configuration Management</em></strong></blockquote><p>Ansible is a popular configuration management tool that uses a declarative approach to configuration management, allowing you to define the desired state of your infrastructure and applications in a simple, human-readable language. Ansible uses a clientless architecture, which means that you don’t need to install any software on the nodes you want to manage.</p><blockquote><strong><em>The key principles of Ansible configuration management include:</em></strong></blockquote><ul><li>Playbooks: Ansible uses playbooks to describe the configuration of your infrastructure and applications. Playbooks are written in YAML, a human-readable data serialization language. Playbooks define the desired state of your infrastructure and applications, and Ansible uses modules to apply the configuration changes to the nodes.</li><li>Modules: Ansible modules are reusable components that perform specific configuration tasks. Modules are written in Python and can be used to perform a wide range of configuration tasks, from simple file copying to complex multi-node orchestration.</li><li>Inventory: Ansible uses an inventory file to keep track of the nodes you want to manage. The inventory file is a simple text file that lists the IP addresses or hostnames of the nodes, along with any necessary connection details.</li></ul><blockquote><strong><em>Setting up Ansible</em></strong></blockquote><p>To get started with Ansible, you’ll need to set up a control node and one or more managed nodes. The control node is where you’ll install and run Ansible, while the managed nodes are the ones you want to manage using Ansible.</p><blockquote><strong><em>Here are the basic steps to set up Ansible:</em></strong></blockquote><ol><li>Install Ansible on the control node: Ansible can be installed on any Linux or Unix-based system, including macOS. You can install Ansible using the package manager of your distribution or by downloading the source code and compiling it manually.</li><li>Create an inventory file: You’ll need to create an inventory file that lists the nodes you want to manage. The inventory file is a simple text file that lists the IP addresses or hostnames of the nodes, along with any necessary connection details.</li><li>Create a playbook: You’ll need to create a playbook that describes the configuration changes you want to make to the managed nodes. Playbooks are written in YAML and define the desired state of your infrastructure and applications.</li><li>Run the playbook: Once you’ve created the playbook, you can run it using the ansible-playbook command. Ansible will use the modules specified in the playbook to make the necessary configuration changes to the managed nodes.</li></ol><p>Section 1: Ansible Fundamentals Ansible is an open-source automation tool that enables IT teams to manage infrastructure and applications in a declarative way. Ansible uses YAML files called playbooks to define the desired state of your system, and then executes them on target machines via SSH or other protocols. Ansible modules provide pre-built functionality for common tasks like installing packages, configuring services, and managing users.</p><p>Section 2: Setting Up Ansible for Configuration Management To get started with Ansible, you need to install it on a control machine and configure target machines for remote access. Ansible can be installed on Linux, macOS, and Windows platforms, and supports multiple inventory formats like YAML, INI, and dynamic inventories. You can use Ansible Vault to encrypt sensitive data like passwords and keys, and use roles to organize your playbooks and make them reusable.</p><p>Section 3: Advanced Ansible Techniques for Configuration Management Ansible enables you to implement advanced configuration management techniques, such as idempotency, error handling, and testing. Idempotency means that Ansible will only make changes to your system if they are necessary, which reduces the risk of unintended consequences. Error handling allows you to handle failures gracefully and recover from them automatically. Testing enables you to validate your configuration changes before applying them to production systems.</p><p>Section 4: Ansible Integration with Other Tools Ansible can be integrated with other tools like Jenkins, GitLab, and AWS to automate the entire IT workflow. Ansible Tower provides a web-based UI for Ansible, as well as RBAC, logging, and reporting features. Ansible Galaxy is a community-driven repository of Ansible roles that you can use to share and reuse configurations with others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*-iiXP2ikBmEXjjfg9Vjy1g.jpeg" /><figcaption><a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.slideteam.net%2Fhands-on-introduction-to-ansible-configuration-management-with-ansible-complete-deck.html&amp;psig=AOvVaw1fTlFU5hLYqgSjj6qbUCcB&amp;ust=1683304098969000&amp;source=images&amp;cd=vfe&amp;ved=0CBMQjhxqFwoTCOiF5siK3P4CFQAAAAAdAAAAABAJ">https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fwww.slideteam.net%2Fhands-on-introduction-to-ansible-configuration-management-with-ansible-complete-deck.html&amp;psig=AOvVaw1fTlFU5hLYqgSjj6qbUCcB&amp;ust=1683304098969000&amp;source=images&amp;cd=vfe&amp;ved=0CBMQjhxqFwoTCOiF5siK3P4CFQAAAAAdAAAAABAJ</a></figcaption></figure><blockquote><strong><em>Conclusion:</em></strong></blockquote><p>Ansible configuration management provides a powerful tool for streamlining IT operations in a digital world. By using Ansible, you can automate infrastructure and application management in a scalable and efficient way, while ensuring consistency and reducing errors. This blog has provided a practical guide to Ansible configuration management, including the key principles, setting up Ansible, advanced techniques, and integration with other tools. We hope this has given you a good starting point to explore Ansible further and try it out on your own.</p><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d8e43c3b3f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Unveiling the Magic of Containers: A Journey into the Heart of Modern Computing”]]></title>
            <link>https://medium.com/@vsdevshatwar/unveiling-the-magic-of-containers-a-journey-into-the-heart-of-modern-computing-addb3cb89607?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/addb3cb89607</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Tue, 02 May 2023 09:29:30 GMT</pubDate>
            <atom:updated>2023-05-02T09:29:30.970Z</atom:updated>
            <content:encoded><![CDATA[<p>Containers provide a convenient way to deploy and run applications within their own isolated environment, eliminating the need to create separate virtual machines. However, have you ever questioned the underlying mechanisms that make containers operate seamlessly?</p><blockquote><strong><em>Containers leverage two key features of the Linux kernel which enables better isolation between the processes:</em></strong></blockquote><ol><li>Namespaces</li><li>Control groups (cgroups).</li></ol><p>When a container is launched, Docker generates a unique set of namespaces and cgroups which are allocated specifically to that container.</p><blockquote><strong><em>Namespaces and cgroups</em></strong></blockquote><h3>Namespaces</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CVcpk-MP7PjbJrkF" /></figure><p>Namespace is a feature in Linux that lets you see a specific part of the system, meaning allocating resources in an isolated environment. Namespace allows you to create that isolated environment where the container only knows what it can see because it’s only in a certain namespace.</p><p>When you initialize a container, docker generates a set of namespaces for the container and every container has its own unique set of namespaces.</p><p>There are various types of namespaces with different properties:</p><ul><li>User/UIDs namespaces — a container running within the user namespace is isolated from the User IDs and Group IDs of other containers, making them unaware of each other’s existence.</li><li>UTS namespaces — isolate hostname and domain name information.</li><li>IPC namespaces — isolate IPC method.</li><li>Net namespaces — isolate network interfaces.</li><li>PID namespaces — isolate process IDs.</li><li>Mount namespaces — isolate mount points.</li></ul><p>Let’s create a new namespace using the unshare command:</p><p>The unshare command is used to run a program with certain namespaces unshared from the parent process.</p><pre>$ unshare --mountThis command creates a new mount namespace, which means that the program that is run after the command will have its own view of the file system. The mounts made within the new namespace won’t be visible in the parent namespace.</pre><p>To start with, we create a new mount namespace by executing the unshare --mount command in this example. We then start a new shell inside the namespace using /bin/bash. Inside the shell, we create a new directory /mnt/test and mount a tmpfs file system on it. To verify the mounting was successful, we list the contents of the directory.</p><p>When we exit the shell, we’re back in the parent namespace. If we try to access the /mnt/test directory, we get an error because the directory was only visible inside the child namespace.</p><p>This is just an example of how you can create a mount namespace, you can also create other namespaces using the unshare command, depending on your need.</p><h3>Control groups (cgroups)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EP-vFNNhAd2rM8r6" /></figure><p>Cgroups help to limit the use of resources so that a single container is not utilizing all the resources available. It allows managing various system resources such as:</p><ul><li>CPU — limit CPU utilization.</li><li>Memory — limit memory usage.</li><li>Disk I/O — limit disk I/O.</li><li>Network — limit network bandwidth.</li></ul><p>With the help of cgroups docker engine helps to share available hardware resources with the container and puts a limit on how much resources the container can use.</p><p>Let’s create a new cgroup named “mygroup” to manage CPU resources using cgcreate command:</p><p>1. First, create a new directory for the cgroup:</p><p>COPY</p><p>COPY</p><pre>$ sudo mkdir /sys/fs/cgroup/cpu/mygroup</pre><p>A folder named “mygroup” is created on the above path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PF6ROtG3mM6nAs9Z" /></figure><p>All these different files define the limit on the CPU.</p><p>2. Then, assign the “cpu” subsystem to the new cgroup:</p><pre>$ sudo sh -c &quot;echo $$ &gt; /sys/fs/cgroup/cpu/mygroup/cgroup.procs&quot;</pre><p>This command adds the current shell process ID to the “cgroup.procs” file of the “mygroup” cgroup, indicating that it belongs to this cgroup.</p><p>3. Next, set the CPU usage limit for the cgroup:</p><pre>$ sudo cgset -r cpu.cfs_quota_us=50000 mygroup</pre><p>This command sets the maximum CPU usage to 50% of one CPU core for the “mygroup” cgroup.</p><p>Now, any processes that are added to the “mygroup” cgroup will have their CPU usage limited to the specified value. For example, using the cgexec command, you can start a new process in the cgroup.</p><p>COPY</p><p>COPY</p><pre>$ sudo cgexec -g cpu:mygroup /bin/bash</pre><p>This command starts a new shell process in the “mygroup” cgroup with CPU usage limited to the value set earlier.</p><p>The cgcreate, cgset, and cgexec commands are part of the libcgroup package, which you may need to install before using them.</p><h3>Conclusion</h3><p>In this article we saw what namespaces and cgroups are and by using these features how can docker create a unique set of namespaces and cgroups for each container, making it possible to run multiple containers on a single host machine without any problems.</p><p>I hope you understood how docker works behind the scenes 😁.</p><p>Also, check out this wonderful hands-on workshop by <a href="https://twitter.com/ChadMCrowell">Chad</a> to learn more about Linux and Docker :)</p><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=addb3cb89607" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Declarative Infrastructure as Code with GitOps and Kubernetes: A Practical Guide for DevOps Teams”]]></title>
            <link>https://medium.com/@vsdevshatwar/declarative-infrastructure-as-code-with-gitops-and-kubernetes-a-practical-guide-for-devops-teams-5132c9713c60?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5132c9713c60</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Tue, 02 May 2023 09:09:07 GMT</pubDate>
            <atom:updated>2023-05-02T09:09:07.523Z</atom:updated>
            <content:encoded><![CDATA[<p>“Declarative Infrastructure as Code with GitOps and Kubernetes: A Practical Guide for DevOps Teams”</p><blockquote><strong><em>Introduction:</em></strong></blockquote><ul><li>Briefly introduce the concept of GitOps and its relevance in modern DevOps and Kubernetes deployments.</li><li>Highlight the challenges of managing Kubernetes infrastructure and applications, and how GitOps can help to address these challenges.</li></ul><blockquote><strong><em>Section 1: GitOps Fundamentals</em></strong></blockquote><ul><li>Define the key principles of GitOps, including declarative infrastructure, version control, and continuous delivery.</li><li>Explain how GitOps workflows can help to automate infrastructure management and application deployment.</li><li>Provide examples of GitOps tools and frameworks, such as Flux, Argo CD, and Jenkins X.</li></ul><blockquote><strong><em>Section 2: Setting Up a GitOps Pipeline with Kubernetes</em></strong></blockquote><ul><li>Walk through the process of setting up a GitOps pipeline with Kubernetes, using Flux as an example.</li><li>Explain how to define infrastructure and application configurations in Git repositories, and how to use Git commits and pull requests to trigger automated deployments.</li><li>Provide examples of YAML files that define Kubernetes objects, such as Deployments, Services, and ConfigMaps, and explain how to manage them with GitOps tools.</li></ul><blockquote><strong><em>Section 3: Advanced GitOps Techniques for Kubernetes</em></strong></blockquote><ul><li>Explore advanced GitOps techniques for Kubernetes, such as Blue/Green deployments, canary releases, and GitOps for multicluster environments.</li><li>Explain how to use GitOps tools to implement these techniques, and provide practical examples of YAML files and Git workflows that demonstrate their benefits.</li><li>Discuss the challenges and best practices for managing Kubernetes infrastructure and applications at scale, and how GitOps can help to address these challenges.</li></ul><blockquote><strong><em>Conclusion:</em></strong></blockquote><ul><li>Summarize the key takeaways from the blog post, and emphasize the importance of GitOps in modern DevOps and Kubernetes deployments.</li><li>Provide recommendations for further reading and learning, such as official documentation, tutorials, and online communities.</li><li>Encourage the reader to share their feedback and questions in the comments section, and to try out GitOps workflows with Kubernetes on their own.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iBQCCEMdSxcb5mY3F2my4w.png" /></figure><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5132c9713c60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Terraform Commands: The Complete Guide to Building, Managing, and Destroying Infrastructure.”]]></title>
            <link>https://medium.com/@vsdevshatwar/terraform-commands-the-complete-guide-to-building-managing-and-destroying-infrastructure-4e6e2233070a?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e6e2233070a</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Tue, 02 May 2023 08:55:39 GMT</pubDate>
            <atom:updated>2023-05-02T08:55:39.973Z</atom:updated>
            <content:encoded><![CDATA[<p>Terraform Commands: A Comprehensive Guide to Init, Validate, Plan, Apply, and Destroy</p><p>Terraform is a powerful infrastructure as code tool that allows you to define and manage your infrastructure as code. It is an open-source tool that is widely used to automate infrastructure deployment on various cloud platforms. Terraform uses a declarative syntax to define the desired state of the infrastructure, and it provides several commands to interact with the infrastructure. In this article, we will explore the most commonly used Terraform commands: init, validate, plan, apply, and destroy.</p><blockquote><strong><em>Terraform Init</em></strong></blockquote><p>The init command is used to initialize a Terraform working directory. This command downloads the necessary plugins and modules required for your configuration. When you run this command, Terraform will look for the configuration files in the current working directory and load the plugins necessary to interact with the cloud platform. This command is usually run only once when you start working on a new Terraform project or when you change the provider configuration.</p><blockquote><strong><em>Terraform Validate</em></strong></blockquote><p>The validate command is used to validate the Terraform configuration files. It checks the syntax and verifies if the configuration is valid. This command is useful when you are creating a new configuration file or when you have made changes to an existing configuration file. Running the validate command before running the plan command can save you a lot of time and effort.</p><ol><li>Terraform Plan</li></ol><p>The plan command is used to create an execution plan. This command creates a detailed report of the changes that Terraform will make to the infrastructure. It allows you to review and approve the changes before they are applied. This command is useful when you want to test your configuration changes without actually applying them.</p><ol><li>Terraform Apply</li></ol><p>The apply command is used to apply the changes to the infrastructure. This command takes the execution plan created by the plan command and applies it to the infrastructure. It creates or updates the resources in the cloud platform according to the configuration files. This command should be used with caution because it can create, update, or destroy resources.</p><ol><li>Terraform Destroy</li></ol><p>The destroy command is used to destroy the resources created by Terraform. This command destroys all the resources created by the apply command. It is a useful command when you want to delete all the resources created by Terraform. It is important to use this command with caution because it can delete resources that you may still need.</p><blockquote><strong><em>Conclusion</em></strong></blockquote><p>Terraform is a powerful tool that allows you to automate infrastructure deployment on various cloud platforms. The init, validate, plan, apply, and destroy commands are the most commonly used Terraform commands. The init command is used to initialize a Terraform working directory. The validate command is used to validate the Terraform configuration files. The plan command is used to create an execution plan. The apply command is used to apply the changes to the infrastructure. Finally, the destroy command is used to destroy the resources created by Terraform. Understanding these commands is essential for managing your infrastructure as code with Terraform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e6e2233070a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Cloud-Native Computing Made Easier: Best Practices for Deploying and Managing Kubernetes on AWS…]]></title>
            <link>https://medium.com/@vsdevshatwar/cloud-native-computing-made-easier-best-practices-for-deploying-and-managing-kubernetes-on-aws-fe8b1fcacf42?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe8b1fcacf42</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Mon, 01 May 2023 12:16:02 GMT</pubDate>
            <atom:updated>2023-05-01T12:16:02.811Z</atom:updated>
            <content:encoded><![CDATA[<h3>“Cloud-Native Computing Made Easier: Best Practices for Deploying and Managing Kubernetes on AWS, Azure, and GCP”</h3><p>Kubernetes on Cloud Providers: Best Practices for Deployment and Management on AWS, Azure, and GCP</p><p>Kubernetes has become the de facto standard for container orchestration and management. However, deploying and managing Kubernetes clusters on cloud providers such as AWS, Azure, and GCP can be complex and challenging. In this article, we’ll explore best practices for deploying and managing Kubernetes on cloud providers, and provide hands-on experience to make it easier for you to get started.</p><blockquote><strong><em>Choosing a Kubernetes Distribution</em></strong></blockquote><p>Before deploying Kubernetes on a cloud provider, it’s important to choose a Kubernetes distribution that suits your needs. There are several distributions available, including:</p><ol><li>Kubernetes: The open-source distribution of Kubernetes, which requires manual deployment and management.</li><li>Managed Kubernetes Services: Cloud providers offer managed Kubernetes services that provide automated deployment and management of Kubernetes clusters.</li><li>Third-party Kubernetes distributions: There are several third-party Kubernetes distributions, such as Red Hat OpenShift, that provide additional features and functionalities beyond the open-source distribution.</li></ol><p>Each distribution has its own advantages and disadvantages, and it’s important to choose one that aligns with your organization’s requirements.</p><blockquote><strong><em>Cloud Provider-Specific Considerations</em></strong></blockquote><p>When deploying Kubernetes on cloud providers, there are several cloud provider-specific considerations to keep in mind:</p><ol><li>Networking: Each cloud provider has its own networking model, and it’s important to choose a Kubernetes networking solution that works well with the cloud provider’s networking model.</li><li>Storage: Each cloud provider has its own storage options, and it’s important to choose a Kubernetes storage solution that integrates well with the cloud provider’s storage offerings.</li><li>Cost: Each cloud provider has its own pricing model, and it’s important to choose a Kubernetes distribution and deployment model that aligns with your budget and cost requirements.</li></ol><blockquote><strong><em>Best Practices for Deploying and Managing Kubernetes on Cloud Providers</em></strong></blockquote><ol><li>Use Infrastructure as Code: Use tools like Terraform or CloudFormation to define your infrastructure as code. This will allow you to easily replicate your infrastructure and track changes over time.</li><li>Implement Security Best Practices: Follow Kubernetes security best practices to secure your cluster, including RBAC, network policies, and pod security policies.</li><li>Implement Monitoring and Logging: Use Kubernetes-native monitoring and logging solutions like Prometheus and Fluentd to gain visibility into your cluster and applications.</li><li>Automate Deployments: Use a continuous integration and deployment (CI/CD) pipeline to automate the deployment of applications to your Kubernetes cluster.</li><li>Scale Vertically and Horizontally: Use Kubernetes autoscaling features to scale your applications both vertically and horizontally based on resource usage.</li></ol><blockquote><strong><em>Conclusion</em></strong></blockquote><p>Deploying and managing Kubernetes on cloud providers can be complex and challenging, but with the right best practices and tools, it can be made easier. By choosing the right Kubernetes distribution, understanding cloud provider-specific considerations, and following best practices for deployment and management, you can ensure a successful deployment of Kubernetes on AWS, Azure, or GCP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ueuM2Q6cDuhmzIvKBVgXQw.png" /></figure><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe8b1fcacf42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Why Infrastructure as Code with Terraform is Essential for Efficient Deployment”]]></title>
            <link>https://medium.com/@vsdevshatwar/why-infrastructure-as-code-with-terraform-is-essential-for-efficient-deployment-77945d213409?source=rss-bae294a39b2d------2</link>
            <guid isPermaLink="false">https://medium.com/p/77945d213409</guid>
            <dc:creator><![CDATA[Vaibhav Satish Devshatwar]]></dc:creator>
            <pubDate>Mon, 01 May 2023 12:07:48 GMT</pubDate>
            <atom:updated>2023-05-01T12:07:48.279Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong><em>Infrastructure as Code — Terraform: Revolutionizing the Future of Deployment</em></strong></blockquote><p>Infrastructure as Code (IaC) is a methodology used to manage and provision infrastructure using code. One of the most popular tools for implementing IaC is Terraform. Terraform allows you to describe your infrastructure in code, and then use that code to create and manage infrastructure resources. In this article, we’ll explore why you should use Terraform for IaC and how you can get started with it for a professional hands-on experience.</p><blockquote><strong><em>Why Use Terraform for IaC?</em></strong></blockquote><ol><li>Scalability: Terraform allows you to manage resources across multiple cloud providers and services, making it a great choice for organizations that use multiple cloud providers.</li><li>Consistency: With Terraform, you can maintain consistent infrastructure by using a single configuration file to describe your entire infrastructure. This reduces the risk of configuration drift and makes it easier to track changes over time.</li><li>Automation: Terraform allows you to automate the deployment of infrastructure resources, reducing the time and effort required to manage infrastructure.</li><li>Collaboration: Terraform’s code-based approach allows for better collaboration between teams. Infrastructure can be version controlled, reviewed, and shared like any other code.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XsFPDIeCwdHNxwkG7pd58Q.png" /></figure><blockquote><strong><em>Getting Started with Terraform</em></strong></blockquote><ol><li>Installation: To get started with Terraform, you’ll need to install it on your local machine. You can download Terraform from the official website.</li><li>Configuration: Terraform uses a configuration language called HashiCorp Configuration Language (HCL) to describe infrastructure resources. You’ll need to create a configuration file that describes the infrastructure you want to create.</li><li>Initialization: Once you’ve created your configuration file, you’ll need to initialize the Terraform environment. This involves running the command terraform init which downloads the necessary plugins and sets up the backend for storing state.Planning: The next step is to generate a plan using terraform plan. This command shows you what Terraform will do when you apply the configuration.</li><li>Deployment: Finally, you can apply your configuration using terraform apply. This command creates the infrastructure resources described in your configuration file.</li></ol><blockquote><strong><em>Terraform Best Practices</em></strong></blockquote><ol><li><strong><em>Use modules:</em></strong> Terraform modules allow you to reuse code and create abstractions that can be used across multiple projects.</li><li><strong><em>Store state remotely:</em></strong> Terraform state should be stored remotely in a version-controlled object store like S3, or a managed service like Terraform Cloud.</li><li><strong><em>Version control:</em></strong> Treat infrastructure code like any other code and store it in a version control system.</li><li><strong><em>Testing:</em></strong> Test your Terraform code to ensure that it works as expected.</li></ol><blockquote><strong><em>Conclusion</em></strong></blockquote><p>Terraform is a powerful tool for implementing Infrastructure as Code. It provides a consistent and automated approach to managing infrastructure resources, making it an essential tool for any organization that wants to scale efficiently. By following best practices and getting hands-on experience with Terraform, you can take full advantage of its capabilities and revolutionize your approach to deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pSibOiEn1QZbcWCbOEUqw.png" /></figure><p>Thank you for taking the time to read this.</p><p>Stay tuned till the next blog.</p><p>#KeepLearningKeepGrowing :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77945d213409" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>