Join us
@inder_ips_devops ・ Jan 10,2022 ・ 4 min read ・ 1846 views ・ Originally posted on faun.pub
Part 1 of a series of articles about cloud migration
Introduction
For any organization considering its first venture into on-premise to cloud migration of data and applications, management will find no shortage of introductory literature on the subject.
I remember when I first started working on Cloud Migration. I encountered so many articles, and but the problem, however, is that much of the existing literature is just that — an introduction. It tends to take the form of generalized overviews, summaries of best practices, and checklists with numbers of steps that vary depending on the source.
From a technical perspective, a Cloud migration project can be quite simple or rather complex, depending on factors such as the migration scope and maturity and life cycle of workloads being moved.
In this article I am going to talk about large enterprise migration where we have 50+ Microservices running on kubernetes infrastructure in on-premise and we have to migrate this entire platform to AWS EKS cluster with kubernetes version 1.17.
Before we discuss about the migration , we need to understand few things about Istio (Service Mesh).
Istio Routing Basics
One of the way for allowing traffic into the cluster is through Istio’s Ingress Gateway which positions itself at the edge of the cluster and on incoming traffic enables Istio’s features like routing, load balancing, security, and monitoring.
During Istio’s installation, the Ingress Gateway
component and service that exposes it externally were installed into the cluster. To get the services External IP execute the command below:
If you reach this EXTERNAL_ IP in your browser and you will get a Service Unavailable error, as by default Istio blocks any incoming traffic until we define a Gateway.
A Gateway is a Kubernetes Custom Resource Definition defined upon Istio’s installation in our cluster that enables us to specify the Ports, Protocol and Hosts for which we want to allow incoming traffic.
A gateway controls the flow of traffic into and out of the service mesh.The overwhelming majority of use cases for gateways revolve around the management of inbound traffic. In this capacity, gateways act similarly to regular Kubernetes ingress resources
The VirtualService instructs the Ingress Gateway how to route the requests that were allowed into the cluster.
The important points here are:
The Mock Migration
Undergo a trial run of the migration project plan to uncover unintended results or unnoticed issues.
Current onpremise setup in production.
Let’s start our cloud migration by first migrating Service E to AWS EKS cluster and for that we need to understand traffic routing between microservice B and microservice E in the onpremise cluster.
Microservice B is hitting Microservice E by calling host microservice-e-svc.namespace.svc.cluster.local
and here the routing to microservice E will be decided by the virtual service of microservice E.
Virtual service of Microservice E in onpremise
Steps to migrate Microservice E to cloud
Virtual service of Microservice E in onpremise
Virtual service of Microservice E in Cloud
Service Entry of Microservice E in Onpremise
Execute a Mock Migration
Cutover to Production Cloud
Assuming a successful mock migration, or one that only encountered minor issues with a clear fix, establish a formal cutover schedule. If the mock migration ran into serious issues, then it needs to be repeated after correcting the causes
Putting It All Together
We can use service mesh like Istio to migrate from 1 kubernetes cluster to the other and from on-premises to cloud with zero downtime. There is undoubtedly a fair amount of practice necessary to become proficient in Istio, but it is a gentle ramp-up in comparison to the much steeper learning curve of Kubernetes. Also, when compared to the effort it would take to correctly implement each of its capabilities in isolation and to maintain these in the long run, the return makes the investment appear very viable indeed.
If you enjoy this article, please give it a like, comment, subscribe, and share it!
Join other developers and claim your FAUN account now!
Influence
Total Hits
Posts
Only registered users can post comments. Please, login or signup.