EKS Cluster Migration: Singapore to Thailand
A strategic infrastructure migration to improve latency for local users and adhere to data sovereignty compliance, moving mission-critical workloads from AWS Singapore (ap-southeast-1) to Thailand (ap-southeast-7).
40%
Latency Reduction
ZERO
Downtime Cutover
100%
Compliance met
The Challenge
The application was originally hosted in the Singapore region, resulting in noticeable latency for the primary user base in Thailand. Additionally, new regulatory requirements mandated that sensitive personal data be stored and processed within the Kingdom of Thailand.
The Solution
Designed a phased migration strategy using Infrastructure as Code (Terraform) to replicate the environment exactly.
- Infrastructure Replication: Used Terraform modules to spin up a mirror VPC and EKS cluster in the Thailand region.
- Data Sync: Implemented real-time database replication (RDS Read Replicas) cross-region before promoting the TH node throughout the cutover window.
- Application State: Utilized Velero for backing up and restoring cluster resources (ConfigMaps, Secrets) to ensuring seamless configuration transfer.
- Traffic Cutover: Managed DNS weight-based routing via Route53 to gradually shift user traffic, monitoring error rates at every step.
Tech Stack
AWS EKS
Terraform
Velero
Route53
ArgoCD
Helm