<?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 Gokula Santhiya on Medium]]></title>
        <description><![CDATA[Stories by Gokula Santhiya on Medium]]></description>
        <link>https://medium.com/@gokulasanthiya?source=rss-b3d53bfe7a25------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RY7pvm7iNX_-f1fFlhfdiQ.jpeg</url>
            <title>Stories by Gokula Santhiya on Medium</title>
            <link>https://medium.com/@gokulasanthiya?source=rss-b3d53bfe7a25------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:58:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gokulasanthiya/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[Interconnections of Nomad and Consul]]></title>
            <link>https://gokulasanthiya.medium.com/interconnections-of-nomad-and-consul-1014e6c3ff46?source=rss-b3d53bfe7a25------2</link>
            <guid isPermaLink="false">https://medium.com/p/1014e6c3ff46</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[consul]]></category>
            <category><![CDATA[hashicorp]]></category>
            <category><![CDATA[nomad]]></category>
            <dc:creator><![CDATA[Gokula Santhiya]]></dc:creator>
            <pubDate>Sun, 31 Dec 2023 13:51:53 GMT</pubDate>
            <atom:updated>2023-12-31T14:49:20.158Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey folks, I’m here to share about the kinship of these Hashicorp Tools, nomad and consul. Stay focused till the end for a chunk of knowledge leverage. Let’s start with an introduction to Nomad.</p><h4>Nomad</h4><p>As I already spoke about microservices and their importance in today’s software deployment in my <a href="https://santhiyasandyrc.medium.com/k8s-architecture-e7e317cde1a5">Kubernetes articles</a>, Nomad plays an impeccable role on the same. It servers functionalities similar to Kubernetes, but not exactly the same. Kubernetes(k8s) is a “Container Orchestrator” whereas, Nomad is a “Task Scheduler”.</p><p>While k8s usually plays on containers layer which is on top of Virtual Machines(VMs), Nomad basically unifies these two layers by it’s ability to schedule both VMs and containers.</p><p>One of the common discrepancies with microservices deployment is the leftover hardware capacities. That’s basically when you separate put each app feature by running them on different containers/VMs, the full capacity of your machines is not achieved. In most cases, less than 40-50% of the whole gets used for running the software resulting in huge operational waste by EoD. Nomad pitches in to solve under-utilization issues by scheduling tasks as per the computational needs put together the capacities of all your underlying hardware machines whether they are cloud based or your virtualized on-prem ones. So you just need to define your roll out strategy on a jobspec with an approximate CPU, Memory requirements and submit to Nomad that it manages the rest intelligently.</p><p>Your Jobspec can have details such as:</p><ul><li>CPU, Memory</li><li>Maximum memory extension limit</li><li>Restarts and the no. of retries</li><li>When to fail and how to fail deployments..</li><li>How to manage data mounts..</li><li>The container image to be used</li><li>Whether all services require shared h/w</li></ul><p><em>Since the main essence of this article is about the interconnection of nomad and consul, I’m not delving deep on composing a jobspec. But would really love to publish another article for the same, if many of you need :)</em></p><h4>Consul</h4><p>Alright, let’s dive into our next tool. Hashicorp’s Consul plays it’s part in a service-oriented network infrastructure by managing:</p><ul><li>Service Discovery</li><li>Load Levelling</li><li>Service Registry</li><li>Service Mesh</li><li>Network Segmentation</li></ul><p>Asynchronous services are obviously known for operating independently except for gathering and passing information along with their peer services. For instance, on a Bike-Taxi Servicing app, let Service A is to fetch a Driver Captain and Service B is for Payment. As soon as the captain gets finalized and the drive completes, there goes payment for which A pings B. Above all, for A to find which is B among all the peers laid in front it. Yes, this is “Service Discovery”.</p><p>Let’s imagine there are 4 instances of our sample app deployed for High Availability purposes. The traffic getting inside our app has be balanced among all of the instances for achieving a rhythmic operation. This is known as “Load Levelling”.</p><p>Consul maintains a Service Registry of which service should our A should talk to and from which service B should be sent messages. This is done by Service Graph wherein Consul tracks all the services running so that the peers find it easy to identify each other(not on the usual IP level, but on service level).</p><p>“Service Mesh”…..In case a new service is introduced to an existing app, there is a network protocol which collaborates along with service discovery to detect it as soon as it spins up.</p><p>Here comes, Network Segmentation which is simply a service-to-service communication achieved through Consul Connect.</p><h4>Integration through Consul Connect</h4><p>Consul Connect plays pulsations along with Nomad in it’s jobspec. Right where you declare your service as an individual task in a Nomad jobspec, you declare it’s way of communication with it’s peers as well. While using the connect way, you get to define a side car container for your Service A to communicate with Service B.</p><p>This operation involves establishing a virtual network tunnel in between the services to be communicated. Such that, when a request is made from Service A to Service B, first the request is made from the sidecar container of A via the tunnel to sidecar container of Service B which then goes to the actual Service B. By this process the requests are always seemed anonymous. Even B doesn’t know from which port number exactly the request is coming from and vice versa. The port numbers are all dynamic and they keep morphing n number of times just before a single communication process gets fulfilled. To be precise, when Service A initiates a request, it’s from port 8080. But when it comes through sidecar it’s a randomly picked port number 21345, which concludes that the tunnel is established via the port. This process of virtual tunneling makes it soooo difficult for cyber hackers to get through.</p><p><strong><em>Note</em></strong><em>: Sidecar port range — 21000 to 21225</em></p><pre><br>                                                   T  U  N  N  E  L  <br>                                    |`````````````````````````````````````````````|<br>                    |```````````|   |   |`````````|                 |`````````|   |   |```````````|<br>                    | Service A |------&gt;| Sidecar |----------------&gt;| Sidecar |------&gt;| Service B |<br>                    |           |   |   |         |                 |         |   |   |           |<br>                     ```````````    |    `````````                   `````````    |    ```````````<br>                                     `````````````````````````````````````````````</pre><p><em>Clap if this blog adds value to your life. For more detailed articles on consul/nomad networking, feel free to contact gokulasanthiyar@gmail.com.</em></p><p>If you like to <a href="https://paypal.me/GokulaSanthiya?country.x=IN&amp;locale.x=en_GB">Buy me a Travel Essential</a> 😍</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1014e6c3ff46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K8s Architecture]]></title>
            <link>https://gokulasanthiya.medium.com/k8s-architecture-e7e317cde1a5?source=rss-b3d53bfe7a25------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7e317cde1a5</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[top-7-devops-tools]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[kubernetes-architecture]]></category>
            <dc:creator><![CDATA[Gokula Santhiya]]></dc:creator>
            <pubDate>Thu, 31 Mar 2022 10:04:47 GMT</pubDate>
            <atom:updated>2023-05-08T20:10:58.169Z</atom:updated>
            <content:encoded><![CDATA[<p>Hurray! Vehement readers, I’m up with another article on this awesome DevOps tool, Kubernetes. This article is apropos the tool’s majestic architecture.</p><p><em>“ In the DevOps kingdom, deployment era tends to be the most crucial and could get any involved person-in-charge, crucible! So, how to survive this dynamic era, get the end-product delivered to the client, and thrive in the software market? If deployment is the era, then Kubernetes is the King who reigns the Kingdom. And obviously, any king has to perform multiple tasks; sometimes manage, sometimes get-hands-dirty, give commands and monitor the progress, protect the integrity of secrets, cross-check the errors, rectify them and store the sovereignty information for future references, etc. So the King’s architecture somehow has to be so majestic, isn’t it? But I will try my best to make it as comprehensive and to-the-point as possible without any clutters.”</em></p><p>Here we go..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TKzE_SDNGy54gA9Imridw.png" /><figcaption>K8s Architecture</figcaption></figure><p>Let me break it down into multiple parts:</p><ul><li>Nodes and Types</li><li>Inevitable Installations</li><li>Master Node Processes</li></ul><p><strong>Nodes and Types:</strong></p><p>The architecture involves 2 different types of nodes. They are:</p><ul><li>Master Nodes</li><li>Worker Nodes</li></ul><p>-&gt; A master node is like a commander that decides what to be done, gives orders to the worker nodes, checks whether all the worker nodes are up-to-date, monitors the process of execution and it does health checks as well. Depending upon HA and scalability needs, the number of master nodes can be increased.</p><p>-&gt; A worker node is the one that gets the work done. It receives commands from the master node and executes as per the given sequence. Usually, a K8s cluster has multiple worker nodes.</p><p><strong>Inevitable Installations:</strong></p><ul><li>Container Runtime Interface</li><li>Kubeproxy</li><li>Kubelet</li></ul><p>-&gt; CRI is just about the runtime environment for containers. It’s obvious that a Container Orchestration Engine anyways has to be configured with runtime for it to carry out its orchestration and that can be any of our preferred environments.</p><p>-&gt; Kubeproxy offers a space for networking just like forwarding requests among the pods and services.</p><p>-&gt; Kubelet acts as the communication channel between containers and the nodes responsible for starting them.</p><p><strong>Master Node Processes:</strong></p><ul><li>API Server</li><li>Scheduler</li><li>Controller Manager</li><li>etcd</li></ul><p><strong>API Server:</strong></p><p>An API Server is also popularly referred to as the “Control Plane”. It stands as the primary authentication mechanism which receives requests, checks, validates, confirms, and forwards to another respective process. In simple words, the API Server is an initial gateway to the Kubernetes cluster.</p><p><strong>Scheduler:</strong></p><p>Upon validation by the API Server, requests are received by the Scheduler. On Scheduler’s end, it generates a sequential mechanism to process the request and passes it on to the kubelet which is residing in the worker node. Kubelet, then schedules the job and makes changes to the cluster to serve responses as per the sequence generated by the Scheduler.</p><p><strong>Controller Manager:</strong></p><p>The Controller Manager monitors are the events occurring inside the cluster. It handles any disasters and emergency compromisations within the cluster. Mostly its ideals fall out to the recovery of failed pods.</p><p><strong>etcd:</strong></p><p>etcd is colloquially known as the “Cluster Brain”, as it stores all the information and records all the events that occurred inside the cluster. Every other process is dependent on etcd. Each and every log is present in it and all the processes count on etcd for information consumption.</p><p><em>Folks, the above-mentioned processes are related to the master node and the worker nodes are stacked with the basic components. They both work cordially for achieving the prime purpose of orchestration. If you are curious to know about the components, I have written an article on them as well. I’m dropping the link to it, feel free to check the article. </em><a href="https://santhiyasandyrc.medium.com/a-short-note-on-k8s-components-e13461af1984"><em>https://santhiyasandyrc.medium.com/a-short-note-on-k8s-components-e13461af1984</em></a></p><p><em>I publish articles on DevOps and SDLC trends. So, if you’re someone who’s curious to learn about them, hit the follow button so that you don’t miss any of my updates.</em></p><p><em>Hope you had an informative read!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7e317cde1a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Short Note on K8s Components]]></title>
            <link>https://gokulasanthiya.medium.com/a-short-note-on-k8s-components-e13461af1984?source=rss-b3d53bfe7a25------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13461af1984</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <dc:creator><![CDATA[Gokula Santhiya]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 13:04:28 GMT</pubDate>
            <atom:updated>2023-05-14T07:16:23.946Z</atom:updated>
            <content:encoded><![CDATA[<p>Hola! Fellow DevOps personnel here is a gist about the main components of the most popular tool, Kubernetes. Let me start with a brief intro to the tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KW3-fWdbq6FVh_DrO8EspQ.jpeg" /><figcaption>K8s</figcaption></figure><p>Kubernetes is an open-source container orchestration tool and the most preferred orchestration platform for medium to large-scale applications. Applications in the sense, I refer to those built in a cloud-native fashion.</p><p><em>“No masterpiece can be built without involving some sort of modularization and so applies for an end-to-end functioning software. You need to chunk down your software idea into features, multiple engineers and designers need to work together on multiple programming languages, frameworks, and hell, a lot of tools! This scenario seems too ambiguous and if not handled appropriately, could add a lot of complexities day by day which is not such a vague circumstance in a microservices-based architecture though. Kubernetes solves a major part of this problem by orchestrating all the containers involved in a rhythmic fashion. Different developers use different programming languages for different features and so obviously the dependencies and frameworks are all contained and isolated as Docker containers(Docker is a widely used containerization platform among the rest in the market). After containerization, each feature remains as a closed box in itself and has to be put together to obtain an end-to-end software masterpiece.”</em></p><p>K8s, as it solves a big part of IT architectural problems, has many different components working cordially for achieving their purpose, vivifying the workflows and thereby invigorating the Engineers on the row!</p><p>Components are as follows:</p><ul><li>Nodes</li><li>Pods</li><li>Services</li><li>External Service</li><li>Internal Service</li><li>Ingress</li><li>ConfigMaps</li><li>Secrets</li><li>Volumes</li><li>Deployments</li><li>StatefulSets</li></ul><p><strong>Nodes:</strong></p><p>A node can be any server like a compute engine, EC2 instance, on-prem data center server, etc with an apt container runtime, kubeproxy and kubelet installed.</p><p><strong>Pods:</strong></p><p><em>“A pod is the smallest unit of K8s.”</em> A pod is responsible for offering the appropriate application runtime environment for the workloads. Basically, a pod is an abstraction of containers. Many pods can run per node.</p><p><strong>Services:</strong></p><p>Every pod needs a static IP to it. By default, pods get IP addresses but are non-static and so regular. They use to fickle all the time. In order to introduce reliability and consistency to the running pods, services come into play.</p><p><strong>External Services:</strong></p><p>These are nothing but endpoints outbound and are totally insecure and without any defined DNS name.</p><p><strong>Internal Services:</strong></p><p>These are the inbound endpoints with similar entities like the one quoted above.</p><p><strong>Ingress:</strong></p><p>Real-time application usage is always pleased with predominantly defined FQDNs. Ingresses serve the purpose.</p><p><strong>ConfigMaps:</strong></p><p>Serves as a key-value data store for configuration files, environment variables, etc, and anything that fickles.</p><p><strong>Secrets:</strong></p><p>Same as the ConfigMaps but the purpose is intended only for usernames and passwords.</p><p><strong>Volumes:</strong></p><p>Volumes act as physical storage devices for the default hard drives and ensure data persistency.</p><p><strong>Deployments:</strong></p><p>Deployments are the blueprint for pods and every configuration in detail. They merely set the rule for entire cluster creation.</p><p><strong>StatefulSets:</strong></p><p>StatefulSets as the name indicates are for those stateful databases in the cluster.</p><p><em>Hope you had an informative read!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13461af1984" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hustler Times]]></title>
            <link>https://gokulasanthiya.medium.com/the-hustler-times-dede073f436e?source=rss-b3d53bfe7a25------2</link>
            <guid isPermaLink="false">https://medium.com/p/dede073f436e</guid>
            <category><![CDATA[millionaireimpluses]]></category>
            <category><![CDATA[poem]]></category>
            <category><![CDATA[hustle]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[literature]]></category>
            <dc:creator><![CDATA[Gokula Santhiya]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 11:58:28 GMT</pubDate>
            <atom:updated>2021-09-23T11:58:28.360Z</atom:updated>
            <content:encoded><![CDATA[<p>Occasionally serial shakeout powers thy sentinence,</p><p>Thou mayhap shriek primarily;</p><p>Nevertheless croyez-moi the impending ones</p><p>Will architect thy twain introspectively et materially.</p><p><em>-The Sculpting-Up Writer, </em><strong><em>GOKULA SANTHIYA</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dede073f436e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[STIMULATION]]></title>
            <link>https://gokulasanthiya.medium.com/stimulation-308bde5363e3?source=rss-b3d53bfe7a25------2</link>
            <guid isPermaLink="false">https://medium.com/p/308bde5363e3</guid>
            <category><![CDATA[hustle]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[poem]]></category>
            <category><![CDATA[stimulation]]></category>
            <dc:creator><![CDATA[Gokula Santhiya]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 11:29:43 GMT</pubDate>
            <atom:updated>2021-09-23T11:29:43.366Z</atom:updated>
            <content:encoded><![CDATA[<p>Hustle hard,</p><p>In a bustle;</p><p>Use your muscle,</p><p>Like a chisel;</p><p>Rush your vessel,</p><p>To face the wrestle</p><p>And jostle,</p><p>With a gospel;</p><p>Finally, nestle</p><p>With zestle.</p><p>-GOKULA SANTHIYA</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=308bde5363e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Web Server Configuration on Top of Docker Using Ansible]]></title>
            <link>https://gokulasanthiya.medium.com/apache-web-server-configuration-on-top-of-docker-using-ansible-e1e8e8ee5276?source=rss-b3d53bfe7a25------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1e8e8ee5276</guid>
            <dc:creator><![CDATA[Gokula Santhiya]]></dc:creator>
            <pubDate>Tue, 15 Dec 2020 11:29:43 GMT</pubDate>
            <atom:updated>2020-12-15T11:29:43.586Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Ansible:</strong></p><p>Ansible is an IaC tool, which plays a resourceful role in DevOps. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s main goals are simplicity and ease-of-use. It also has a strong focus on security and reliability, featuring a minimum of moving parts, usage of OpenSSH for transport, and a language that is designed around auditability by humans–even those not familiar with the program.</p><p><strong>Unique Features:</strong></p><ol><li>Simplicity: Ansible provides human-readable automation.</li><li>Powerful: Ansible can be used to automate the entire life-cycle management.</li><li>Agentless: Ansible is built around an agentless architecture. Typically, ansible connects to the hosts, it manages using OpenSSH or WinRM and runs tasks by pushing out small programs knowns as Ansible Modules.</li></ol><p>4. It provides cross-platform support.</p><p>5. Easy-to-manage version control support.</p><p>6. Dynamic Inventories.</p><p>7. Orchestration that integrates easily with other systems.</p><p><strong>Docker:</strong></p><p>Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. Docker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security allow you to run many containers simultaneously on a given host. Containers are lightweight because they don’t need the extra load of a hypervisor, but run directly within the host machine’s kernel.</p><p><strong>Merits of using Ansible with Docker:</strong></p><ul><li>Portability/Flexibility. The fact that <strong>Ansible</strong> playbooks are portable, meaning they can be used anywhere, as well as repeatable, can save you a lot of time and effort.</li><li>Auditability</li><li>Management of Entire Environments</li><li>Similar Syntax</li></ul><h4>Task:</h4><p>To write an Ansible Playbook that does the following operations in the managed nodes.</p><p>🔹 Configure Docker</p><p>🔹 Start and enable Docker services</p><p>🔹 Pull the httpd server image from the Docker Hub</p><p>🔹 Run the httpd container and expose it to the public</p><p>🔹 Copy the html code in /var/www/html directory and start the web server</p><p><strong>Procedure:</strong></p><p><strong>Step 1 — ‘yum’ Configuration:</strong></p><p>Configure yum package manager to install Docker. By default, yum is not readily configured in the DVD of Red Hat Enterprise Linux. So, it is to be configured.</p><p><strong>Step 2 — Install Docker:</strong></p><p>Install Docker using ‘command’ module with ‘- -nobest’ option (or) using ‘package’ module. Because, even though Linux is being popularly used for Docker, Red Hat distro of Linux has certain compatibility issues with Docker.</p><p><strong>Step 3 — Start and Enable Service:</strong></p><p>Pass arguments to start and enable services.</p><p><strong>Step 4 — Install Docker SDK for Python:</strong></p><p>Install Docker SDK for python, to perfor Docker operations using ansible, as ansible is built using python and pull httpd image from Docker Hub.</p><p><strong>Step 5 — Run Container:</strong></p><p>Copy the webpage from Controller Node to Managed Node, so that a directory gets created in Managed Node.</p><p><strong>Step 6 — Launch Webserver:</strong></p><p>Launch the httpd web server and make it public via port:80</p><p><em>View Ansible Playbook:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*G6aQ2MPlpPcVXNrWEmHQ-Q.png" /></figure><p><em>Running Apache Server on top of Docker in the Managed Node -&gt; 192.168.0.29</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vk5Lisd05O_sFBawdbVZwA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1e8e8ee5276" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>