Muhammad Rafay
WorkBlogAboutContact

Work with me

DirectlyWhite-label for agencies

Solutions

All solutionsCloud infrastructureKubernetes & OpenShiftAI platform infrastructureEnterprise CMS hostingMigrations & go-liveDevOps, CI/CD & IaCSecurity & zero trustObservability & DRLoad testing

Markets

UAESaudi ArabiaQatar
  1. Home
  2. Work
  3. SaaS platform on EKS

B2B SaaS, AWS

Kubernetes platform that cut cloud spend by 60% and deploy time from 45 minutes to 5.

A growing SaaS platform was running on hand-built AWS infrastructure with manual deployments and AWS spend rising about 40% month on month. I replaced it with a production-grade EKS platform, GitOps delivery and infrastructure as code, and migrated it service by service without user-facing downtime.

Client
Series B SaaS, about 25 engineers
Delivered with
Cloudlit
My role
Cloud Solutions ArchitectCloud solutions, infrastructure, security and DevOps
Stack
AWS EKS, Terraform, Argo CD
Duration
8 weeks

The problem

Infrastructure that held the team back.

The platform had outgrown its original infrastructure. Deployments were mostly manual and achieved only a 70% success rate. Environment configurations were inconsistent, and AWS costs were rising by about 40% each month. The team needed a more reliable deployment model, consistent infrastructure, and improved resource management.

What I did

  • Assessment. Analyzed AWS spending, workload characteristics, and deployment failure patterns to establish a baseline prior to architectural changes.
  • Kubernetes Platform. Designed and provisioned an Amazon EKS platform with Terraform to enable repeatable infrastructure deployment.
  • GitOps Delivery. Implemented Argo CD to manage application deployments with version-controlled configuration, keeping environments aligned with their declared state.
  • Resource Optimization. Configured Kubernetes requests, limits, and autoscaling based on observed workload utilization to enhance resource efficiency.
  • Migration. Incrementally migrated services behind existing load balancers to maintain the current traffic path and prevent user-facing disruptions.

How delivery ran

Eight weeks, from assessment to handover.

  1. Assess

    Weeks 1 to 2. Establish the AWS cost baseline, assess workload requirements, and define the target architecture. Agree on scope and delivery objectives before implementation.

  2. Build the platform

    Weeks 3 to 5. Provision Amazon EKS, reusable Terraform modules, and Argo CD within the client’s AWS accounts and repositories.

  3. Migrate workloads

    Weeks 6 to 7. Migrate services incrementally, validating each deployment with a defined rollback path before proceeding.

  4. Validate and hand over

    Week 8. Complete platform validation, document operational procedures, and deliver a recorded handover, followed by 30 days of post-delivery support.

Architecture

From the edge to the data.

The request path is in orange. Dashed boundaries are the AWS estate and the delivery and operations platform.

Solution architecture: B2B SaaS platform on EKSSaaS users reach the platform through the existing load balancers, which send traffic to workloads running on Amazon EKS with managed node groups, a cluster autoscaler and resource quotas per team namespace. Argo CD reconciles the declared state of each environment from Git. Each environment has its own VPC, and workloads use IAM roles for service accounts with least-privilege node roles. GitHub Actions builds and tests every change, Terraform provisions accounts, networking, the cluster and add-ons, and Prometheus and Grafana provide cluster and cost visibility and alerting.ONE VPC PER ENVIRONMENTDelivery and operationsCustomersSaaS usersWeb and API trafficTeamEngineers, about 25Changes through pull requestsIngressExisting load balancersWorkloads were migrated behind them service by service,each with a rollback path, so users never noticedEKS CLUSTERWorkloadsTeam namespacesResource requests and limitsQuotas per team namespaceAutoscaling from measured usageScalingCluster autoscalerManaged node groupsScales on measured usage,not on guessesGitOpsArgo CDReconciles declared statefor each environmentPromotion flow from GitNetworkVPC per environmentEnvironments kept separateOne reproducible definition for eachIdentityIAM roles for service accountsLeast-privilege node rolesAccess scoped per service accountCIGitHub ActionsBuilds and tests everychange, then Argo CDpicks it up from GitObservabilityPrometheusGrafana for cluster andcost visibility. Alerts onsaturation, failed syncsIaCTerraformAccounts, networking,cluster and add-ons.Plan/apply gated in CIRequest pathCluster to network and identityDelivery, provisioning and telemetry

Architecture decisions and their trade-offs

  1. Amazon EKS as the platform

    Why. A managed Kubernetes control plane, one reproducible cluster definition in Terraform, managed node groups and the cluster autoscaler, as a standard way to run every service.

    Trade-off. Kubernetes is more platform to run for a team of about 25 engineers, so it was handed over with runbooks for deploy, rollback, upgrade and incident response.

  2. GitOps with Argo CD

    Why. Every environment is declared in Git, reviewed and reconciled, so the cluster always matches what was approved.

    Trade-off. Changes, urgent fixes included, go through Git rather than straight to the cluster. Slower in the moment, but nothing drifts.

  3. Migrate one service at a time

    Why. Each service moved behind the existing load balancers with its own rollback path, so users never noticed.

    Trade-off. Old and new platforms ran side by side through weeks 6 and 7, a longer migration than a single cutover.

What was delivered

The platform delivered in eight weeks.

  • EKS platform and Terraform module library in the client's repositories
  • Argo CD GitOps repository structure and environment promotion flow
  • Autoscaling, quota and cost-control configuration
  • Runbooks for deploy, rollback, upgrade and incident response

Outcomes

What changed for the client.

AreaBeforeAfter
Monthly AWS spendRising about 40% month on month60% below the pre-migration baseline, stable
Deployment successAbout 70%, manual95%, automated
Deployment time45 minutes with intervention5 minutes, hands-off
Unplanned platform downtimeRecurringNone recorded in the 6 months after go-live
OwnershipTribal knowledgeDeclared in Git, documented, operated by the team

How these were measured: spend is monthly AWS spend against the cost baseline set in the week 1 to 2 assessment, which also measured the 40% month-on-month rise. The saving came through requests, limits and autoscaling set from measured usage. Deployment success counts deployments that completed without a failure or a rollback. Downtime counts unplanned outages caused by the platform.

Client-identifying information and sensitive implementation details have been omitted or generalised.

Have a cloud platform to build, modernise or improve?

Whether you are designing a new platform, modernising existing infrastructure or improving production operations, let’s discuss your requirements and delivery approach.