1. Containerize
Docker, done properly
Build a Docker image for the app, with a real health check endpoint and explicit CPU and memory requests and limits. Run it locally and in staging first. If it does not behave identically to the EC2 version, stop — the image is the problem, not Kubernetes.
2. Set up the cluster
EKS, boring and standard
EKS control plane, managed node groups, IAM roles per service account — not one shared role for everything. Networking first: VPC, subnets, security groups, and the ingress that will eventually take the traffic. Keep the cluster boring; excitement belongs in the applications.
3. Deploy with Helm and ArgoCD
GitOps, not kubectl from a laptop
Package each app as a Helm chart with values per environment, and let ArgoCD sync it from Git. Every deploy becomes a pull request — reviewable, reversible, and identical in staging and production. No more “it worked when I ran it”.
4. Stage the rollout
One app, then the next
Deploy to staging, run the same checks you ran on EC2, then move one production app and watch it for a full business cycle before touching the next. Rolling updates with readiness probes mean old pods keep serving until new ones are genuinely healthy.
5. Cut traffic over
The zero-downtime moment
Point the ingress at the new deployment and shift traffic gradually, watching error rates and latency the whole time. Keep the EC2 version running until the EKS version has served real traffic for a while — the rollback is simply pointing traffic back.
6. Validate and decommission
Prove it, then switch the old off
Check the things that break silently: background jobs, scheduled tasks, log shipping, alerts. Only when all of them are confirmed on EKS do the old EC2 instances get terminated. An instance left running “just in case” is a bill and a risk.