Technical Work

Kubernetes Platform Architecture

A game company with loosely connected ECS services but no coherent shared platform needed one that studio teams could use without rebuilding infrastructure.

Role
Designed and built the platform, then led the function that ran it
Scale
Multiple game studios, teams across four countries
Outcome
Zero-downtime cutovers from ECS to EKS; a documented decision process that outlived individual projects
Stack
EKS, Istio Ambient, ArgoCD, Helm, Karpenter, KEDA, Kyverno, Crossplane, Terraform

Context #

The company was building game studios and had ECS services, but no coherent shared platform. Every team that needed a service running needed networking, deployment, secrets, monitoring and DNS, and without somewhere shared to get those, each team would have solved them separately and differently. I joined as principal software engineer and infrastructure technical lead, and the platform was the first thing to design.

The requirement was that a studio team should be able to ship a service without having to learn how the infrastructure underneath it is wired.

Constraints #

The engineering team was spread across four countries, an eight-hour spread. Nothing could require everyone awake at the same time, which rules out a platform that depends on tribal knowledge or on asking me.

Workloads were already running on ECS. The platform had to be somewhere existing services could move to without a maintenance window, because game traffic doesn’t have a convenient quiet hour.

My role #

I designed the architecture and built its core myself: GitOps, the service mesh, autoscaling, policy, secrets and the team onboarding chart. After moving into engineering management I retained platform architecture and technical direction. The function grew to ten engineers across game CI, AI infrastructure, SRE and platform/compute; the transition toward a hands-on domain lead for each area was still in progress.

Architecture and decisions #

The platform is EKS, with each layer chosen to be something a product team never has to think about.

Platform architecture

DeliveryCluster, on EKSPlatform servicesOutside the clusterGitdesired stateArgo CDreconcilesreadsappliesKyvernoadmission webhookadmits ordeniesKEDAevent signalsscalesKarpenterpending podsadds nodesApplication workloadsgame servicesclaimsIstio ambientmTLS per node, L7 at waypointsconnectsCrossplanecontrollers and providersmanagesExternal SecretsExternalDNScert-managersupplyDatadogagentsobservesTerraformcluster and accountsprovisionsAWS resourcesmanaged dependenciesacts onreads state frompolicy gateruns outside the clusterpolicy decision
Argo CD reads desired state from Git and applies manifests to the cluster. Kyverno runs there as an admission webhook on what Argo CD applies, and either admits a workload or denies it; manifests do not pass through Kyverno on the way in. KEDA scales workloads on queue depth and event rate, Karpenter adds nodes for pods that are pending, and Istio in ambient mode connects the workloads with mTLS and L4 policy per node and L7 at waypoint proxies. The platform services run in the cluster too: External Secrets, ExternalDNS and cert-manager supply secrets, DNS records and certificates to the workloads, and Datadog’s agents observe them. Crossplane runs in production for incubator-game dependencies: the AWS data stores and access permissions those games need. Its providers manage those AWS resources outside the cluster. Terraform stays responsible for the core infrastructure, including the cluster and accounts.
Grouped by domain, with every line labelled. Kyverno’s accent line is a decision applied to what Argo CD ships; the manifests never route through it. The diagram states responsibilities and relationships, not topology: cluster counts, network layout and addressing are not published.

Delivery runs through GitOps. ArgoCD reconciles cluster state from Git, so the cluster’s contents are reviewable and a rollback is a revert. Letting CI push with cluster credentials would have put production write access into every pipeline, with no single description of what’s supposed to be running.

The mesh is Istio in ambient mode, with waypoint proxies handling L7 where it’s needed. Ambient moves mTLS and L4 policy into a per-node component, so a pod no longer carries a sidecar. That mattered more for the migration than for steady state: a workload can join the mesh without its pod spec changing, which is what made cutting over from ECS without downtime achievable.

Autoscaling is split by concern. Karpenter provisions nodes against the pods actually pending, so capacity follows demand without someone maintaining node groups. Game teams have their own NodePools, and node affinity and tolerations on each team’s pods place them there. KEDA scales workloads on the signal that drives them, which for the queue-backed and event-driven services I was scaling meant queue depth and event rate were more useful than CPU.

Policy is enforced at admission. Kyverno rejects a missing label or an unsafe setting when it’s submitted, so the cluster can’t drift into a state a later sweep has to find and chase down.

Incubator-game dependencies are declared from inside the cluster. Crossplane manages the AWS data stores and access permissions needed to bootstrap those games. Core infrastructure remains in Terraform.

Secrets, DNS, certificates and observability all follow the same pattern: External Secrets, ExternalDNS, cert-manager, Datadog. The platform owns the integration and the team owns a declaration.

The interface teams use #

Two published Helm charts provide the interface for teams; teams supply their values. Both are versioned and published to the internal Helm repository, and each consumer pins a version, so a platform change ships as a chart release and teams pick it up on their own schedule.

The application chart covers Deployments, Jobs and CronJobs from one set of templates. A team supplies an image, ports, a hostname and what to scale on. The chart renders the workload and what surrounds it: routing, scaling, secrets, network policy, a disruption budget, access control and observability tagging. It only produces namespace-scoped, non-privileged workloads, which keeps everything it renders inside what Kyverno admits. The chart began as an open-source generic chart, and the platform-specific parts are mine: mesh routing, KEDA support, the External Secrets integration, authentication at the mesh and in front of services, and the ECS migration wiring.

The ECS cutovers went through the same chart. With migration enabled it registers the ECS service with the mesh, and the service’s routes can split traffic by weight between the ECS and EKS destinations. Moving traffic is a weight change in a values file, and so is rolling back. That is how the cutovers happened without a maintenance window.

The onboarding chart, which I wrote, turns a new team into a values file: namespaces with the labels the platform expects, the Argo CD project that limits what the team can deploy and where, the team’s mesh configuration and its ingress. The Argo CD project moved into the chart after onboarding kept needing hand-edits to central files.

The operating model #

I wrote an RFC and ADR process so decisions were argued in writing and stayed findable afterwards. On a team with an eight-hour spread, a decision made on a call gets relitigated by whoever wasn’t there.

I wrote the service ownership model, setting out what the platform owes product teams and what those teams own themselves, along with the incident management model that goes with it. Without that boundary a platform team becomes the escalation point for every problem on the cluster, which is more work than any size of team absorbs.

Trade-offs #

Ambient mode was newer than the sidecar model when I picked it. The migration argument won, but it meant taking the less common path through a service mesh that’s already a large piece of machinery.

A platform that abstracts this much is also one more thing to learn. Someone comfortable with raw Kubernetes has to work through the platform’s interface. That cost is real. I took it because it lands on one team and then stops.

A shared chart is a shared dependency. Every service renders through the same templates, so a bad release lands on all of them, and a team with an unusual requirement waits for the chart to grow a knob for it.

Results and lessons #

Existing services moved from ECS to EKS with no downtime, which was the hard requirement. The RFC and ADR practice outlasted the projects that prompted it and became how the group made decisions.

What I’d carry forward: write the ownership model at the same time as the architecture. The technical design was ready before there was an agreed answer to who gets paged.