<?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 Naman Gupta on Medium]]></title>
        <description><![CDATA[Stories by Naman Gupta on Medium]]></description>
        <link>https://medium.com/@naman.gupta_17274?source=rss-765796c38400------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*d1QrwgFmJDeg_5ku.jpg</url>
            <title>Stories by Naman Gupta on Medium</title>
            <link>https://medium.com/@naman.gupta_17274?source=rss-765796c38400------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:04:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@naman.gupta_17274/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[Migrate For Anthos: Migration from VM’s to Containers]]></title>
            <link>https://blog.searce.com/migrate-for-anthos-migration-from-vms-to-containers-8ca412e922d7?source=rss-765796c38400------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ca412e922d7</guid>
            <category><![CDATA[anthos]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[gke]]></category>
            <dc:creator><![CDATA[Naman Gupta]]></dc:creator>
            <pubDate>Fri, 20 Nov 2020 07:34:02 GMT</pubDate>
            <atom:updated>2020-11-20T07:34:02.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y6y68f7nW85kIOYOE9XMfw.png" /></figure><p>Let’s Start with Understanding Migration and Modernisation concept and how Anthos help to enhance this process</p><h3><strong>Concept Of Migration and Modernisation Of Applications :-</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFlSMFDNF8VRYQSpGR_YRg.png" /></figure><ol><li>Migration Process : Migration involves lifting and shifting virtual machines/legacy applications running on physical servers into public cloud platforms which offer many benefits, including enhanced agility, significantly reduced overhead compared to a datacenter, and a standard usage and management environment</li><li>Modernisation Process : Modernisation may or may not come after migration process, but when it coupled with migration, it can enhance overall operations and give your technology/Application a fresh perspective.</li></ol><h3><strong>Migration of Applications from VM to Containers : Anthos</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*x0OdYlFFvmHLAzrCE2Ee2A.png" /></figure><p><a href="https://cloud.google.com/migrate/anthos?_ga=2.155878395.-1961115065.1598266098&amp;_gac=1.229261736.1601300818.EAIaIQobChMI87jLlILr6wIViH0rCh1pSweXEAAYASAAEgJEJ_D_BwE">Migrate for Anthos</a> is a tool that containerise and migrate your application running on ON-Prem, any VM or Compute Engine (In our case) to GKE. One of major advantage of this tool is it combines migration and modernisation into one step, removing complexity by doing a lot of the “heavy lifting” behind the scenes. With just a few clicks, and without the need for code rewrites or other complex manual processes, VMs can be moved from on-prem datacenters, GCE, or other clouds directly into containers in GKE.</p><p>Let’s start our journey to <a href="https://cloud.google.com/migrate/anthos?_ga=2.155878395.-1961115065.1598266098&amp;_gac=1.229261736.1601300818.EAIaIQobChMI87jLlILr6wIViH0rCh1pSweXEAAYASAAEgJEJ_D_BwE">Migrate for Anthos</a> from migrating application running in compute Engine to Google Kubernetes Engine(GKE) using Anthos migration service.</p><h4>(a). Before going in to this, let’s run the application in Compute Engine.</h4><ol><li><a href="https://cloud.google.com/migrate/anthos/docs/migration-prerequisites">Prerequisite</a>:- This will help to know required support to get migrated via Anthos tool.</li><li>Also, VPC network must be setup to run Compute Engine with Application and GKE as well for anthos migrate.</li><li>Once the Compute engine is up and running, run the required application and test it , such that it should run fine on public IP of vm with given port number (if exposed in firewall rule of VM).</li></ol><h4>(b). Migrating applications running in VMs to GKE using Anthos.</h4><p>Migration Process involves setting up of processing cluster on GKE which will have additional components for anthos migrate tool other than GKE default components.This cluster will be required till the all migration process end up, once images of all VM’s based application completed than we can delete this processing cluster. To setup the processing cluster use following steps:</p><p>(i) Go to Anthos Service and Check under migrate to containers section, there you will see <strong>Add Processing Cluster.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*Kum7AcOQ8EfWmUSGZNgRWA.png" /></figure><p>(ii). Add the processing Cluster if already created or you can create one processing cluster, configure the cluster as per your requirement, later on you may delete this cluster once migration process gets endup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*ZUeuImh2iPTOEqd2swFRyQ.png" /></figure><p>(iii). Follow the following steps to install components of anthos tool in created cluster:-</p><p>(a). Enable required Google Cloud APIs by running the following command.</p><pre>gcloud services enable servicemanagement.googleapis.com servicecontrol.googleapis.com cloudresourcemanager.googleapis.com container.googleapis.com compute.googleapis.com containerregistry.googleapis.com</pre><p>(b). A service account is required for storing the migration artifacts in Container Registry and Cloud Storage. Create a new account by running the following command.</p><pre>gcloud iam service-accounts create m4a-anthos-test-us-central1</pre><p>(c). Add to the account the required permissions to access Container Registry and Cloud Storage.</p><pre>gcloud projects add-iam-policy-binding searce-academy --member=serviceAccount:m4a-anthos-test-us-central1@searce-academy.iam.gserviceaccount.com --role=roles/storage.admin</pre><p>(d). Migrate to containers software requires a key to use the service account. Create and export a new key to a file by running the following command.</p><pre>gcloud iam service-accounts keys create sa.json --iam-account=m4a-anthos-test-us-central1@searce-academy.iam.gserviceaccount.com --project searce-academy</pre><p>(e). Install the migrate to containers software with the created json key by running the following command.</p><pre>gcloud container clusters get-credentials anthos-test --region us-central1 --project searce-academy &amp;&amp; migctl setup install --json-key=sa.json</pre><p>(f). Monitor installation by periodically running the following command until deployment status marked OK.</p><pre>gcloud container clusters get-credentials anthos-test --region us-central1 --project searce-academy &amp;&amp; migctl doctor</pre><p>Now, Migration Process using Anthos divides the process into majorly four different steps :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*9Vd-qarWXZQpdSJSwzwiNg.png" /></figure><ol><li><a href="https://cloud.google.com/migrate/anthos/docs/adding-a-migration-source">Add a migration source</a> : Here you need add the processing cluster created previously and source where your existing application is running, in our case it is compute engine.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*_CAbFNY2XRc8qw1Ah3WQbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*EwsXs83w-vhs6OK3R7w54Q.png" /></figure><p>2. <a href="https://cloud.google.com/migrate/anthos/docs/creating-a-migration">Create a migration</a> : Here you need give the source name created in step 1 and other configuration details like type of OS that is getting migrated and VM ID and also migration intent which is basically indicates the type of workloads needs to be migrated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*BcALIUN4g_jBVzdHEy57hw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jz-MDxsVpG8C92IkuFa0UQ.png" /></figure><p>3. <a href="https://cloud.google.com/migrate/anthos/docs/customizing-a-migration-plan">Customize migration plan</a> : This step includes changes in the migration plan that is created in step 2. Once Migration plan created, review once and do required changes in this step.</p><p>4. <a href="https://cloud.google.com/migrate/anthos/docs/executing-a-migration">Execute the migration</a> : This is Final step where we can execute the final migration plan so as to get artifacts and deployments required to run on defined kubernetes cluster. Basically, once this steps gets executed it will generate and store all the artifacts in GCS bucket and also, generates Docker Image out of it and push it to GCR registry. This step of migration takes a bit more time to get executed.</p><p>Once above steps are done , verify the artificats in GCS bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*2SfbUYDgwJdyzpinhfrXmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*D8OpHHdxu8CDBjRUnzOmcw.png" /><figcaption>Deployment_spec.yaml (generated by anthos)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*DNRwVO5pa59LZw45oRTiRg.png" /><figcaption>Service.yaml (generated by anthos)</figcaption></figure><p>Deploy above artefacts in GKE Cluster and check everything is working fine as expected.</p><p><strong>Important Note:</strong> Since we migrated whole VM on container, that means everything running on VM except application also reside inside container and hence this may be referred to as a “system container” rather than an “app container”</p><p><strong>REFERENCES</strong></p><ul><li><a href="https://cloud.google.com/migrate/anthos">Migrate to Containers | Google Cloud</a></li><li><a href="https://cloud.google.com/kubernetes-engine">Google Kubernetes Engine (GKE)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ca412e922d7" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/migrate-for-anthos-migration-from-vms-to-containers-8ca412e922d7">Migrate For Anthos: Migration from VM’s to Containers</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JAEGER : A Distributed Tracing System by Uber Technologies.]]></title>
            <link>https://blog.searce.com/jaeger-a-distributed-tracing-system-by-uber-technologies-e312c4b21475?source=rss-765796c38400------2</link>
            <guid isPermaLink="false">https://medium.com/p/e312c4b21475</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[jaeger]]></category>
            <category><![CDATA[distributed-tracing]]></category>
            <dc:creator><![CDATA[Naman Gupta]]></dc:creator>
            <pubDate>Mon, 25 May 2020 15:11:32 GMT</pubDate>
            <atom:updated>2020-05-26T06:55:03.746Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction to Jaeger : Distributed Tracing On Kubernetes</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rx8ktasu2_-90AHow53J4w.jpeg" /></figure><h3><strong>OPENTRACING (Distributed Tracing)</strong></h3><p>Before starting about Jaeger, Let’s go around OpenTracing technique and how to use it in micro-services environment with tools like Jaeger.</p><p>In micro-services architecture, many applications communicating with each other than ever before. While application performance monitoring is great for debugging inside a single app, as a system expands into multiple services, how can you understand , how much time each service is taking, where the exception happens, and the overall health of your system? In particular, how do you measure network latency between services — such as how long a request takes between one app to another?</p><p>To deal with all these problems and scenarios, Distributed Tracing comes into the picture,</p><p><em>“Distributed tracing is the art and science of making distributed traces valuable.”</em></p><p>Distributed tracing is a method used to tracking and monitoring the applications mostly built using micro-services architecture. It helps in finding where failures occur and what causes poor performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/0*rVkRwrlOv7yl3Anv" /></figure><p>The Major Components that plays a crucial role in distributing Tracing are:-</p><ol><li>Trace: A recording of a transaction as it moves through a distributed system.</li><li>Span: A named, timed operation representing a piece of the workflow. Spans have a timestamp, duration, and are annotated with tags and logs.</li></ol><p>To Show Distributed Tracing in Action, we will be using Jaeger as our Tracer Implementation.</p><p><strong>JAEGER: A Distributed Tracing System</strong></p><p>Jaeger is one of the major tool which is used for Distributed Tracing System, it will monitor, troubleshoot and analyse micro-services base applications using tracing system.</p><p>Following is the architectural flow for Jaeger, with all components of jaeger and how these components work together in pipeline to show end result in UI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/0*rjRgPMmQt5N8y2en" /></figure><p>Jaeger Deployment steps in Kubernetes for Micro-services Applications :-</p><p>Before Starting deployment of Jaeger in Kubernetes, It is important to configure <strong>Jaeger-Client libraries</strong> in Application with other libraries of Application, so that it will be easier for other components of Jaeger to fetch the application data for tracing.</p><p>Jaeger Tracing can be compatible with languages like <strong>Go,Python,Java,Node and C++</strong>.</p><p>Lets Start with Deployment stages with each components:-</p><ol><li><strong>Jaeger-Agent</strong></li></ol><p>Jaegar-Agent is a Daemon that fetches workflow from Jaegar-Client present in Application via UDP network and sent it to Jaeger Collector.</p><p>It can be deployed using two ways i.e Daemonset and Sidecar.</p><p>In our case we used <em>Sidecar</em> format for Jaeger Agent which will run as a sidecar container in same application pod and fetches application details using UDP network.</p><p>This is example application running with sidecar as jaegar-agent.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a5f02404a5122fd05501e421efcbbbf/href">https://medium.com/media/6a5f02404a5122fd05501e421efcbbbf/href</a></iframe><p><strong>2. Jaeger-Collector</strong></p><p>Jaeger Collector Collects the traces coming from Jaeger agent in form of batches and pass it over to storage.</p><p>It is collector only which validates the traces and pass it to storage using pipeline.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea5a610d54f3309e3c521bbc5e2d9d0b/href">https://medium.com/media/ea5a610d54f3309e3c521bbc5e2d9d0b/href</a></iframe><p><strong>3. Jaeger Query</strong></p><p>Jaeger query is responsible for fetching traces from storage and helps in showing traces on UI. Jaeger us having its own UI for monitoring tracing but we can integrate other tool as well like ELK etc.</p><p>Here in our case we had used Default UI of Jaeger.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/75da42545b86d2393a4460ff69dd1ae4/href">https://medium.com/media/75da42545b86d2393a4460ff69dd1ae4/href</a></iframe><p><strong>4. Jaeger-Storage</strong></p><p>Jaegar-Storage stores the validated traces coming in pipeline from collector section.As of now Jaeger using two Storage types:-</p><p>(i). Elastic Storage</p><p>(ii) Cassandra Storage</p><p>In our case we are using Cassandra as storage , which will be mount to j<em>aegar-collector</em> for fetching traces and <em>jaegar-query</em> for pushing traces to show on UI.</p><p>Here Below given is service file ,Stateful-set file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9059dd553768e6efaf4bfa2faec0f22c/href">https://medium.com/media/9059dd553768e6efaf4bfa2faec0f22c/href</a></iframe><p>Common configuration required for storage with some components are as below:-</p><pre>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: jaeger-configuration<br>  labels:<br>    app: jaeger<br>    app.kubernetes.io/name: jaeger<br>data:<br>  span-storage-type: cassandra<br>  collector: |<br>    collector:<br>      zipkin:<br>        http-port: 9411<br>    cassandra:<br>      servers: cassandra<br>      keyspace: jaeger_v1_dc1<br>  query: |<br>    cassandra:<br>      servers: cassandra<br>      keyspace: jaeger_v1_dc1<br>  agent: |<br>    collector:<br>      host-port: &quot;jaeger-collector:14267&quot;</pre><p><strong>Validation Of Jaegar Deployment with Application</strong></p><p>These are running deployment for all components of jaegar with cassandra Storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*yTtZIFtkZzxN6pUsWz3J6Q.png" /></figure><p>In our case, Below given <em>service endpoint</em> is with type as <em>“LoadBalancer” </em>for application such ordermgr and jaegar-query.</p><p>we can deploy it using ingress as well with DNS hosted zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*3QA06tKpm2LdmvLuzmD7zQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*15WHfkk-EbK5PZxVPFWiVw.png" /></figure><p>The UI Part Of Jaegar with some tracing output for GET request is as follows :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgSN6-zu2aLNJubyPTwqdA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qoAT1bZ2i0nNRUGKU4J4Ew.png" /></figure><h3>REFERENCES</h3><ul><li><a href="https://www.jaegertracing.io/docs/1.18/architecture/">Architecture</a></li><li><a href="https://github.com/jaegertracing/jaeger-kubernetes">jaegertracing/jaeger-kubernetes</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e312c4b21475" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/jaeger-a-distributed-tracing-system-by-uber-technologies-e312c4b21475">JAEGER : A Distributed Tracing System by Uber Technologies.</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>