<?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 Simran Rajhans on Medium]]></title>
        <description><![CDATA[Stories by Simran Rajhans on Medium]]></description>
        <link>https://medium.com/@simran.rajhans?source=rss-18ae3a54bdec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bbtCIGlmnxMJR7dL</url>
            <title>Stories by Simran Rajhans on Medium</title>
            <link>https://medium.com/@simran.rajhans?source=rss-18ae3a54bdec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:38:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simran.rajhans/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[Setting up Global Configurations in Devtron]]></title>
            <link>https://medium.com/@simran.rajhans/setting-up-global-configurations-in-devtron-ac2fa6d69fe2?source=rss-18ae3a54bdec------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac2fa6d69fe2</guid>
            <category><![CDATA[devtron]]></category>
            <dc:creator><![CDATA[Simran Rajhans]]></dc:creator>
            <pubDate>Tue, 31 Oct 2023 17:28:18 GMT</pubDate>
            <atom:updated>2023-10-31T17:30:06.226Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Abstract</em></strong><em> —</em> <em>Kubernetes can be powerful but managing it alongside multiple tools can lead to complexity. So today, we will integrate Kubernetes with Devtron, an open-source tool, and set up different global configurations to make our lives much easier and more fun! And as the slogan of Kubernetes itself says “Keep it simple, keep it extensible!” So, why not?</em></p><p><strong>Why Devtron?</strong><br>Devtron is a platform that seamlessly integrates with various open-source tools, such as ArgoCD, Clair, Argo Workflows, Casbin, Lens, Jetstream, and more, to streamline Kubernetes management and get under a single user-friendly UI.</p><p><strong>Agenda :</strong></p><p>This is going to be a series of blogs where we embark on a journey to explore the depths of Devtron and its integration with Helm charts. Our goal here is to unlock the combined potential of these powerful tools starting from square one. We’ll kick things off by creating our own Devtron environment guiding you through the setup of global configurations offered by Devtron.</p><p>As we progress, we’ll delve into deploying our custom charts on devtron, and dissect the differences between helmfiles and Devtron chart groups, showcasing when and how to utilize each for efficient application deployments in your Kubernetes environment.</p><p><strong>Setting up Devtron Environment</strong> :</p><p>The only pre-requisite is going to be setting up your own cluster. For this demonstration, we are using Google Kubernetes Engine. Once done, connect to the cluster, install helm, and then install devtron by using the below helm command.</p><pre>helm repo add devtron https://helm.devtron.ai<br>helm install devtron devtron/devtron-operator \<br>--create-namespace --namespace devtroncd \<br>--set installer.modules={cicd}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpR9maDlsRhgc60wB5-ejw.jpeg" /><figcaption>Installation of Devtron</figcaption></figure><p>With this, devtron will be installed. To check the status of the installation run the below command -</p><pre>kubectl -n devtroncd get installers installer-devtron -o jsonpath=&#39;{.status.sync.status}&#39;</pre><p>If you see “Downloaded” that means the installation is still going on. Wait for approximately 20 minutes and then check again. Once it shows “Applied”, that means the installation is completed. This installation will create several namespaces, jobs, pods, and services that are necessary for devtron to run in a proper manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lQlZDbVKV6g2IT6eb0Ynw.jpeg" /></figure><p>You can also check the installation by running the command -</p><pre>kubectl get jobs -n devtroncd</pre><p><strong>Accessing Devtron UI:</strong></p><p>Let us get the Devtron endpoint and also the admin password (stored as a secret) that was created:</p><pre>kubectl -n devtroncd get secret devtron-secret \<br>-o jsonpath=&#39;{.data.ADMIN_PASSWORD}&#39; | base64 -d<br>Output: ********<br><br>To get the endpoint:<br>kubectl get svc -n devtroncd devtron-service \<br>-o jsonpath=’{.status.loadBalancer.ingress}’<br>Output: [{&quot;ip&quot;:&quot;34.144.XX.XXX&quot;}]</pre><p>Upon hitting the IP, you should be able to see the Devtron page. Now login with username “admin” and the password that you received in the step above. You should see a page like this now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EgqIWtSiTw5ZcPik_FtXLw.jpeg" /></figure><p>Voila! Your devtron setup is done. Now let’s move to set up the “<strong>Global Configurations</strong>”. For setting up the global configurations, hover on the blue panel on the left side and click on Global Configurations. You will get a page like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x8yAdQwMzInetEq139_jnQ.jpeg" /><figcaption>Global Configurations</figcaption></figure><p>Now, it is important to understand how setting up the global configurations will do a greater good.</p><p>Global configurations refer to the settings and parameters that are defined at a higher level and can be shared across different applications and environments within the Devtron ecosystem. These configurations play a key role in streamlining the deployment and management of applications in Kubernetes. For example, if you have multiple environments like dev, UAT, prod, etc., and want similar configurations for all of them then the options that Devtron presents can help you out.</p><p>Let us see what are the options and where it can be useful :</p><p><strong>Host URL</strong>: This specifies the URL of the instance or the host where Devtron is deployed. It’s the central point of connection for applications, ensuring they know where to interact with Devtron.</p><p><strong>GitOps</strong>: This allows to set up GitOps workflows for applications. You can specify the Git repositories where your application code and configuration are stored. This enables automated deployments based on changes in the Git repositories.</p><p><strong>Projects:</strong> This simplifies management by allowing you to apply project-level configurations to a set of related applications, making it easier to handle settings, permissions, and other parameters across the project.</p><p><strong>Cluster and Environments</strong>: This setting helps to organize and define the different Kubernetes clusters and environments where your applications will be deployed. It&#39;s essential for specifying the target environment for each application.</p><p><strong>Git Accounts</strong>: Git accounts allow you to configure authentication and access to your Git repositories. You can link Devtron to your Git accounts for pulling code, configuration, and other resources needed for deployments.</p><p><strong>Container Registries</strong>: These are repositories for Docker images. You can specify container registries to pull container images from during the deployment process, ensuring that the correct images are used.</p><p><strong>Chart Repositories</strong>: It is sources for Helm charts. You can define references to these repositories, making it convenient to access, update, and deploy Helm charts across different applications. We are going to explore this below.</p><p><strong>Custom Charts</strong>: Custom charts are Helm charts tailored to your application&#39;s specific needs. They enable you to extend Helm charts with application-specific templates, configurations, and dependencies to meet unique deployment requirements.</p><p><strong>SSO Login Services</strong>: Single Sign-On (SSO) login services provide secure authentication for Devtron. You can configure this to ensure that only authorized users have access to Devtron&#39;s features and functionalities.</p><p><strong>Authorization</strong>: This defines user roles and permissions within Devtron. You can specify who can perform various actions, access certain resources, and manage applications.</p><p><strong>Manage Notification</strong>: It allows you to configure how Devtron sends alerts, notifications, or updates. This ensures that you and your team are informed about the status and progress of deployments and other activities.</p><p><strong>External Links</strong>: External links in global configurations enable you to define and manage external resources or services that are related to your applications. It&#39;s a convenient way to link and access external services or documents that are part of your application ecosystem.</p><p><strong>Chart Repositories</strong></p><p>By default, there are many repositories to use and explore in the Devtron Chart Repositories. And we can add our own repository or just create a custom chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s0b3PasTu_WgdoPy" /></figure><p>For now, we are going to explore the provided repositories. We are going to start with the Prometheus community for the demonstration.</p><p>To start with, click on the prometheus-community and then click on Validate, and then Update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDiEglSVuINBM7q40izk1g.jpeg" /></figure><p>Once validated, the repository will be added to the Chart store.</p><blockquote>NOTE — It may take 5 mins to add the repository to the store.</blockquote><p>To go to Chart Store, hover on the blue panel on the left side and click on Chart Store. You will see it like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BL91vDbItglAt7YJJg0Vlw.jpeg" /><figcaption>Chart Store</figcaption></figure><p>Now click on the prometheus-community/alertmanager and click Configure &amp; Deploy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YBRjKkYK1yQRFw0V" /></figure><p>A new page will open where you can edit the default yaml, change the no. of replicas, and customize however you want.</p><p>We will give the necessary details like App name, Project name i.e. devtron-demo (created by default), etc.</p><p>Note — We have created a namespace in the cluster before “prometheus” and then we are giving the name of the namespace in the deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pg4pYGpIrYcxfFnl" /></figure><p>Once done, click on “Manifest Output” to check if it will be the desired output and then Deploy Chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hGdBZ0Kv0O-u0KHu" /></figure><p>Now we can check the status of our newly deployed service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mO17YXWvWJUG7umj" /></figure><p>For verifying, go to the cluster and run the following command -</p><pre>kubectl get pods -n prometheus </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xJRcqsOWxGkVJjy8" /><figcaption>Output</figcaption></figure><p>Congratulations on deploying the prometheus alert manager on the cluster. Now, Let’s clean up! We can delete the deployment by just clicking on the three buttons at the right-most corner and then Delete Application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmVrMoeKY12acAy4eEB9Sw.jpeg" /><figcaption>Clean up</figcaption></figure><p><strong>Summary:</strong></p><p>In this blog, I walked you through my Devtron installation, delved into global configurations, and took a closer look at chart repositories. We wrapped up by deploying Prometheus Alert Manager for efficient monitoring.</p><p>Happy Helming and Stay committed to Open Source :)</p><p><strong>Future Scope:</strong></p><blockquote>As we wrap up this introductory journey into Devtron and its integration with Helm charts, our mission is far from complete. This blog series is just the beginning of an exciting exploration. In the upcoming articles, we will continue to unearth the hidden gems of Devtron. We’ll dive deeper into its robust feature set, including advanced deployment strategies, scaling solutions, and best practices for seamless orchestration. Get ready for an in-depth look at how Devtron empowers your Kubernetes environment and makes your DevOps tasks even more efficient and powerful!</blockquote><p><strong>References</strong> -</p><p>To install helm — <a href="https://helm.sh/docs/intro/install/">https://helm.sh/docs/intro/install/</a></p><p>Devtron installation — <a href="https://docs.devtron.ai/install/install-devtron">https://docs.devtron.ai/install/install-devtron</a></p><p>Devtron: <a href="https://devtron.ai/">https://devtron.ai/</a></p><p><strong>Questions:</strong></p><p>Don’t hesitate to comment below if you have any questions, we will be happy to help you.</p><p>Feel free to get in touch on LinkedIn — <a href="https://www.linkedin.com/in/simran-rajhans/">Simran Rajhans</a>.</p><p>The above blog is submitted under ‘Blogathon Contest 2023’ conducted by Devtron(Website Hyperlink here: <a href="https://devtron.ai/">https://devtron.ai/</a>)<br>Check out their Github repo: here(Github Hyperlink here: <a href="https://github.com/devtron-labs/devtron">https://github.com/devtron-labs/devtron</a>) and give it a star ⭐ if you like it.<br>Follow them on: LinkedIn(Hyperlink here: <a href="https://www.linkedin.com/company/devtron-labs/">https://www.linkedin.com/company/devtron-labs/</a>), Twitter(Hyperlink here: <a href="https://twitter.com/DevtronL">https://twitter.com/DevtronL</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac2fa6d69fe2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced spreadsheet automation using Python leveraged by Azure container instances]]></title>
            <link>https://medium.com/@simran.rajhans/advanced-spreadsheet-automation-using-python-leveraged-by-azure-container-instances-7be94854494c?source=rss-18ae3a54bdec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7be94854494c</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Simran Rajhans]]></dc:creator>
            <pubDate>Wed, 26 Oct 2022 19:06:47 GMT</pubDate>
            <atom:updated>2022-10-27T09:43:20.898Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog plans to demonstrate the automation of spreadsheet creation using Python, which would run on an Azure container instance. This will be followed by pushing it to Azure Blob Storage for future reference and data retrieval. I have used Pandas data frames, Azure Logic App, Azure Key Vault, Azure SQL database, Azure Container Instances, IAM, and Azure Blob Storage to fulfil this use case.</p><h4>Problem statement</h4><p>Exporting a SQL table to an excel spreadsheet is essential for many organizations. Non-technical teams like management, accounting, sales, etc. may not possess the skill to connect to a server, select the database, and query a table. I came across this requirement in multiple projects that I have delivered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*gzm6FoThdz4CTIp4.png" /></figure><p>A business requirement was to query different tables by executing a sequence of complex queries in a non-simultaneous fashion, creating an output table with the required fields and dumping the data into a CSV.</p><h4>Expected Solution</h4><ol><li>The entire process should take place with minimal human intervention.</li><li>The application must be dockerized and deployed to a container instance to minimise costs.</li><li>The process should be reliable and efficient.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*b536UcJLB5gME-CF.jpg" /></figure><h4>Other basic and advanced use cases</h4><ol><li>Your sales team needs to analyse the record of a recent campaign.</li><li>Your account team needs access to employee data.</li><li>Employee attendance-related details are to be retrieved and stored as spreadsheets for regulatory purposes.</li><li>The expenditure report needs to be pulled by the finance team.</li><li>Daily retrieval of business-related data for a specific application/service followed by dumping it into a CSV.</li></ol><h4>Solution</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*w28jkO-fmdoJQKbBnhenvA.png" /></figure><h4>Architecture Diagram:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*PVpSBNs-hNPkmGecCwuY3A.png" /></figure><p>I developed a python application to streamline the entire automation process which would query tables in an Azure SQL database, create a structure with necessary fields, and finally dump it to a CSV. This CSV would then be stored in Azure blob storage for future reference/retrieval purposes.</p><p>Post development, I dockerized the application, created an image, pushed the image to DockerHub and deployed it to an Azure container instance. Azure states the benefits of running a container instance as follows:</p><blockquote>Develop apps fast without managing virtual machines or having to learn new tools — it’s just your application, in a container, running in the cloud.</blockquote><p>And that was exactly what I wanted to achieve! For more details, you can check out <a href="https://azure.microsoft.com/en-us/products/container-instances/#overview">this link…</a></p><p>I am going to provide the steps to replicate this use case as well as some tips and tricks for customizing it as per your business requirements:</p><h4>Pre-requisites</h4><p>Some pre-requisites would be necessary for you to follow along or replicate the steps:</p><ol><li>You will need an Azure subscription. If you do not have one, you can get one for free. <a href="https://azure.microsoft.com/free/?ref=microsoft.com&amp;utm_source=microsoft.com&amp;utm_medium=docs&amp;utm_campaign=visualstudio">Click here</a> to create a free Azure account.</li><li>You will need an IDE to write your Docker file and the Python code. You can download <a href="https://code.visualstudio.com/">Visual Studio Code</a> for free.</li><li>Make sure you have Python installed and the <a href="https://marketplace.visualstudio.com/items?itemName=ms-python.python">VS Code Python extension</a>.</li></ol><h4>Solution Implementation</h4><h4>Step 1:</h4><p>First I will write the Python code to automate the entire workflow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2dd2a959185142a352487235a0ec8501/href">https://medium.com/media/2dd2a959185142a352487235a0ec8501/href</a></iframe><p>I will break down individual components of the code for a better understanding</p><p>These are the packages that I have imported</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bce006f197d6fac4b9c650888d34b0c/href">https://medium.com/media/5bce006f197d6fac4b9c650888d34b0c/href</a></iframe><p>Here, I am retrieving the secrets from Azure Key Vault</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e9070b0f98ff9b16b3400f02d29244d1/href">https://medium.com/media/e9070b0f98ff9b16b3400f02d29244d1/href</a></iframe><p>This is a list of queries to be executed</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ed7edf07a563f6dcf3145c5ce84ce7f/href">https://medium.com/media/9ed7edf07a563f6dcf3145c5ce84ce7f/href</a></iframe><p>I plan to structure my blob like this</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b30e21d0ae8d773668f33a85ec58450f/href">https://medium.com/media/b30e21d0ae8d773668f33a85ec58450f/href</a></iframe><p>Below is the most important block of my code i.e., the logic</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d86c7417bd2cea58bd00433f970c712/href">https://medium.com/media/0d86c7417bd2cea58bd00433f970c712/href</a></iframe><h4>Step 2:</h4><p>In this step, I will dockerize the above code and push it to Dockerhub</p><pre>FROM python:3.8-alpine</pre><pre>COPY ./requirements.txt .</pre><pre>WORKDIR /app</pre><pre>RUN pip install -r requirements.txt</pre><pre>COPY . /app</pre><pre>ENTRYPOINT [ &quot;python&quot; ]</pre><pre>CMD [&quot;view.py&quot; ]</pre><p><em>Note: You will have a different requirements.txt file based on your use case.</em></p><p>I will now build a docker image, tag it, and push it to DockerHub</p><p>Build the Docker image:</p><pre>docker image build -t spreadsheet-automation .</pre><p>Tag the Docker image:</p><pre>docker tag spreadsheet-automation sim-rajhans/automations</pre><p>Push the Docker image to DockerHub:</p><pre>docker push sim-rajhans/spreadsheet-automation</pre><h4>Step 3:</h4><p>Now, I will create an Azure Container Instance from the Azure Portal. Make sure that you enter your image name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*VzPi2dsuobCnrismq7n4zQ.png" /></figure><p>Once created, I will navigate to the Identity section and enable system-managed identity</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_pngkGUG96oYmwAXLNFS4Q.png" /></figure><p>I will add a role assignment to allow ACI to access Azure Storage Account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*OWnBHuKXfHVpaOjEQu_lfw.png" /></figure><p>Then I will add role assignment to allow ACI to access Azure SQL Database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*rcoyp5kLVI1qZn1TIGgzIw.png" /></figure><h4>Step 4:</h4><p>Once, the permissions are in place, I will proceed to check the execution of my application. The blob storage would have populated with the file structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F41Eb7fSyV_KXfsBFSNJKQ.png" /></figure><p>As expected, the folder structure and the CSV files were successfully populated with the results of subsequent queries!</p><h4>Best practice guide:</h4><ol><li>Whenever you are dealing with access, always try to assign fine-grained access.</li><li>Never leave keys and connection strings or any other confidential details open in the code.</li><li>Use Azure key vault to store secrets.</li></ol><h4>Challenges:</h4><ol><li>I implemented the entire solution on a virtual machine before moving it to an Azure Container Instance.</li><li>On a virtual machine, the application executed and performed perfectly. However, the cost of running a VM was too much.</li><li>To solve this I moved the entire application to an Azure container instance by dockerizing it which was slightly challenging due to the service level access issues.</li><li>Writing the code involved a lot of complexities and dependency on multiple services.</li></ol><h4>Business benefits:</h4><ol><li>The cost was reduced by 3 times</li><li>The entire solution was automated and could be replicated for any other use case internally</li><li>Manual work was minimized and the automation worked without manual intervention.</li><li>The overhead of maintaining the VM was reduced as the container instance was managed by Azure now.</li></ol><h4>Further implementation:</h4><p>In addition to the above solution, I created a logic app with a trigger to stop the container whenever the execution was completed. This prevented the container from indefinitely consuming resources and avoided unintended costs.</p><h4>Conclusion:</h4><p>I have successfully created the Python code to automate advanced spreadsheet creation based on custom queries. I have leveraged Azure Services like Azure SQL Database, Azure Container Instances, IAM, Azure Storage, and Azure key vault to achieve the use-case.</p><h4>References:</h4><ul><li><a href="https://azure.microsoft.com/en-us/products/container-instances/">https://azure.microsoft.com/en-us/products/container-instances/</a></li><li><a href="https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction">https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction</a></li><li><a href="https://docs.docker.com/engine/reference/commandline/push/">https://docs.docker.com/engine/reference/commandline/push/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7be94854494c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration To GCP With SUREedge® Migrator]]></title>
            <link>https://blog.searce.com/migration-to-gcp-with-sureedge-migrator-7cd32081da60?source=rss-18ae3a54bdec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cd32081da60</guid>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[cloud-migration]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[sureedge-migrator]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Simran Rajhans]]></dc:creator>
            <pubDate>Tue, 03 May 2022 10:38:46 GMT</pubDate>
            <atom:updated>2023-10-31T17:14:17.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TNd609ewGjafay6klltyw.png" /></figure><p>This Article is based on how to migrate your infrastructure workload from any cloud or on-premises to GCP with SUREedge Migrator.</p><h3>On-Premises to GCP</h3><p>Enterprises often have a heterogeneous environment running applications on physical systems and virtual systems with different hyper-visors. Clouds, including GCP, typically rely on a standard hypervisor and underlying infrastructure. Any workloads running in the cloud must comply with that cloud’s standards. Therefore, when migrating workloads from onprem to the cloud, one must not only migrate data and applications, but also transform them so that they are compatible with the cloud. SUREedge® Migrator simplifies and speeds up GCP import from any source. By automating and providing workflows for scheduling, collection, and replication in a secure (encrypted) and bandwidth-efficient manner, SUREedge® handles conversion to GCP format and restores on GCP without the usual complicated migrations.</p><h3>Any Cloud to GCP</h3><p>For customers considering moving from another cloud to GCP, SUREedge® enables workload migration from their current cloud provider to GCP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*t2Y_wyn1ydNR_TKYRcUBPQ.png" /><figcaption>Migration flow diagram</figcaption></figure><h3>How does Migration Work?</h3><p>To use SUREedge® to integrate with GCP, you must run an instance of SUREedge® on the source site, on-premises, or in the existing cloud, and on the destination site that will be GCP. The source site clone provides the ability to collect and duplicate applications and data, while the on GCP clone acts as a recovery manager at GCP. <br>Once the SUREedge® instances are running, the process is simple: just register the SUREedge® Server Utility on the source servers and add a list of virtual machines to migrate, then create a batch system migration plan and run the specified plan. You can also define a consistency or recovery group, setting different IP addresses, vCPUs, and memory during restore. SUREedge® allows you to perform incremental updates like syncs and captures so you can migrate, test in a test environment without impacting a production environment, apply incremental updates eventually and fail work with minimal or zero downtime.</p><h3>Prerequisites for SUREedge® Migrator</h3><p><strong>Accounts and Privileges :</strong></p><p>A user account with below roles:</p><p><strong>Owner:</strong> privileges for the project(s).<br><strong>Organization role administrator:</strong> privileges for the account.<br><strong>Organization admin:</strong> Privileges for the cloud account.</p><p><strong>API enabled and service account :</strong></p><p>Service account with appropriate permissions to make the necessary cloud API calls to create cloud-side virtual machines and convert them to run in the cloud.</p><p>(<strong>Note</strong>: Persistence provides a script that you can use to perform the role creation process and easier API activation.)</p><p>To run the permission configuration script, open the <a href="https://console.cloud.google.com/">Google Cloud Console</a> and run the command below to download the configuration script to create the Google Cloud service account and role:</p><pre>gsutil cp gs://sureline-release/gcpmigrator/7.3.0/SUREedgePreDeployment/* .</pre><p>This command copies these files into the Cloud Shell environment :</p><pre>SUREedgeMigratorPreDeployment.py</pre><pre>SUREedge _deployment.json</pre><p>Then the script SUREedgeMigratorPreDeployment.py can be run to create the required role and service account for SUREedge® Migrator.</p><pre><strong>Syntax:<br></strong>python3 SUREedgeMigratorPreDeployment.py [-h] -d &lt;DEPLOYMENT_NAME&gt; -p &lt;PROJECT_ID&gt; [-o &lt;ORG_ID&gt;]</pre><p><strong>Example: </strong>python3 SUREedge® MigratorPreDeployment.py -d surepoc -p searce-playground-v1</p><p><strong>Arguments:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*EZvVt1zQcwuWwT7cV96kCw.png" /></figure><h4>Networking Configurations:</h4><p><strong>VPN tunnel</strong> between (Onprem/any cloud) and GCP.<br><strong>Shared VPC</strong> (Legacy network not supported) If there are multiple projects involved.<br><strong>Single VPC</strong> In case all systems are migrated into a single project.<br><strong>Landing zones</strong> in GCP VPC, subnets, tagging, etc.</p><p><strong>Firewall Rule:<br></strong>The ports below must be open Onprem and GCP:</p><p><strong>ICMP:</strong> Allow between the SUREedge® Migrator instance and the target network and projects.</p><p><strong>TCP:</strong> Ports 22, 139, 445, 25025, 25026, 25027, and 25028 must be open between the SUREedge® Migrator instance and the target project networks.</p><p><strong>TCP:</strong> Ports 80 and 443 must be open between the SUREedge® Migrator MC virtual machine and all systems where the browser will be used to access Migrator user interface. .</p><h4>SUREedge® Migrator Instance Size</h4><p>SUREedge® store size (GCP only) 1.5 times the overall capacity of the app being migrated Install SUREedge® via Marketplace for GCP in GCP<br><strong>SUREedge® Windows:</strong> Work, Monitor<br><strong>SUREedge® Storage Linux:</strong> full/incremental collect and archive in compression/disinfect.<br>(Note: Storage needs to be sized based on overall storage to be migrated)</p><h3>Installing SUREedge® Migrator on GCP</h3><p>For deploying the SUREedge® Migrator from the Marketplace, click on <strong>Launch</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*beF08gx-0NyQXfJILlj46A.png" /><figcaption>SUREedge Migrator- GCP</figcaption></figure><p>Next, while deploying fill out the details as the following -</p><ol><li><strong>Deployment Name</strong> — The name of the migrator.</li><li><strong>Zone</strong> — Select the zone as per your choice and associated network.</li><li><strong>Service Account </strong>— Select the service account which has the permissions as said above in the blog.</li><li><strong>Network</strong> — If using Shared VPC, then select Networks shared with me, in this select the network shared from the host project. Otherwise, select Network in this Project and specify the network and subnet details.</li><li><strong>Firewalls</strong> — The firewalls required for the migration are already specified above. So, just tick the box of Communication Ports.</li><li><strong>Source IP ranges</strong> — Keep the network IP ranges of the source cloud provider (in our case it is Azure).</li><li><strong>IP ranges for accessing the web UI</strong> — According to the best practices, the UI should be accessible from a vm, e.g. a bastion vm. Therefore, specify the network IP ranges of the target cloud (GCP VPC). Also, you can give your IP range followed by /32 so that you can access it from your own IP.</li></ol><p>Now define the CPU and Memory based on sizing of vm and define the data disk to store migrated data. We have chosen the default details of Windows and Linux machines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Q0BDmlRkNivi5NA5nsdKw.png" /><figcaption>SUREedge Migrator- GCP Deployment</figcaption></figure><p>Once the deployment is complete, the following deployment page shows the address of the Windows virtual machine where you can access the Migrator user interface, along with the pre-configured <strong>username</strong> and <strong>password</strong> used to connect you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PjqkSTgtgrkl6_UKd6362Q.png" /><figcaption>SUREedge Migrator- access UI</figcaption></figure><p>Once SUREedge® instance gets deployed on GCP go to <strong>Deployment manager</strong> and Select <strong>Sureline instance.</strong></p><h3>Sureline Web UI</h3><p>To Login SUREedge® webui — copy the <strong>Windows Site address</strong> in Google Search engine and enter <strong>Admin User</strong>, <strong>Password</strong> provided in <strong>Deployment Manager</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSiZvlRtTC9Yq4EyuHevcA.png" /><figcaption>SUREedge Migrator- Web UI</figcaption></figure><p>Once you login to Web-UI, set <strong>encryption password</strong> and <strong>passphrase</strong> from Data encryption settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JkcocdKikXSOFuA-fPW9EA.png" /><figcaption>Data Encryption Setting</figcaption></figure><p>Next Click on <strong>Global recovery settings</strong> and Select <strong>Sync GCP Project Information</strong> and then enter global recovery settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QVVaA1IWPFQ0Pb9eBVFALg.png" /><figcaption>Global Recovery Settings</figcaption></figure><p>Now Select<strong> Licencing</strong> option to configure license for your instance.<br>(Note:You need to request for SUREedge® license with number of servers to be migrated to <a href="/service/mailto:support@surelinesystems.com">support@</a>accelerite.com)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wbw1xW8AAbHA_0zaa-eC7w.png" /><figcaption>Licensing</figcaption></figure><p>Once License is configured you can see SUREedge Migration <strong>Dashboard</strong> as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JrKM6sHyYBsTbRdusMFIDg.png" /><figcaption>SUREedge UI Dashboard</figcaption></figure><p>Click on the <strong>Migration</strong> tab to Register Servers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlHpgxfua0oW9-kW7aHSKQ.png" /><figcaption>Migration Settings</figcaption></figure><p>To register servers you need to install <strong>SUREedge® Server Utility</strong> on Source VM’s (Linux and windows servers)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcZZf1uWD6YdfY80DNOybg.png" /><figcaption>SUREedge Server Utility</figcaption></figure><p><strong>For Linux Servers — </strong>file_copy</p><pre>wget -O ./SUREedge® _server_utility_linux_installer.tar http://10.128.0.32/downloads/SUREedge® _server_utility_linux_installer.tar file_copy</pre><p>OR: Download the SUREedge® Server Utility Installer for Linux and execute the following commands.</p><pre>tar -xvf ./SUREedge® _server_utility_linux_installer.tar file_copy</pre><pre>sudo ./SUREedge® _server_utility_installer.sh — token 4C4EBFFC3553A1A3 file_copy</pre><p>Example of registering Linux server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*1fxPQo1TtrmRbaMkqvm-4Q.png" /><figcaption>Register linux Server</figcaption></figure><p><strong>For Windows Servers</strong></p><p>Download the SUREedge® Server Utility Installer for Windows, unzip installer and execute the following command:</p><blockquote>SUREedge® ServerUtility.exe /token=4C4EBFFC3553A1A3 file_copy</blockquote><p>Example of registering windows server:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*NBUJjRnbI9CB794CwkV25A.png" /><figcaption>Register Windows Server</figcaption></figure><p>Once Servers are registered successfully, select a server and click on <strong>Migrate</strong> &gt; <strong>Full</strong> (to perform full sync for source server) or <strong>Sync</strong> (to sync only Incremental data of source VM).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0ICO7GKA4gGoWrj8OJH7Q.png" /><figcaption>Migration Settings</figcaption></figure><p>Schedule Sync option and submit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*8xhqQi_eRjFkUQmQdD26-w.png" /><figcaption>Replication Schedule Setting</figcaption></figure><p>To Monitor Jobs click on <strong>jobs.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mx1jJm1WBG3wXJVdKMq1oA.png" /><figcaption>Monitor Job</figcaption></figure><p>See below status column for progress. There are a total of three columns under status which are Replication, Ready, and Recovery. Green means jobs are completed and black with blue interactive icon means still pending.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlHpgxfua0oW9-kW7aHSKQ.png" /><figcaption>Migration Status</figcaption></figure><p>Test <strong>Restore/Cutover</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a97tW23HMUSlylujfqtuNg.png" /><figcaption>Restore/Cutover</figcaption></figure><p>Start and Confirm Restore Recover.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*euZnQb8EAmc7mPdKw7VfUQ.png" /></figure><h3>Summary</h3><p>We have successfully migrated Windows and Linux servers to GCP using the SUREedge® migrator tool.</p><h3>References</h3><p><a href="https://sureedge.accelerite.com/google/sureedge-migrator-getting-started-on-gcp/">https://SUREedge® .accelerite.com/google/SUREedge® -migrator-getting-started-on-gcp/</a></p><h3>Questions?</h3><p>Don’t hesitate to comment below if you have any questions, we will be happy to help you.</p><p>Follow us on LinkedIN — <a href="http://www.linkedin.com/in/vivekschaugule">Vivek Chaugule</a>, <a href="http://www.linkedin.com/in/simran-rajhans">Simran Rajhans</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cd32081da60" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/migration-to-gcp-with-sureedge-migrator-7cd32081da60">Migration To GCP With SUREedge® Migrator</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>