Operating a Multi-Architecture (ARM64/AMD64) EKS Cluster with Karpenter: Practical Lessons
The Social PLUS engineering team shares their experience integrating AWS Graviton into an Amazon EKS cluster alongside AMD64, broadening Spot instance options and optimizing cloud costs.
Curated by Vibe DevOps · approx. 591 words
Key Takeaways
- Adding arm64 to Karpenter expanded eligible Spot instance types from 28 to 38 options in the Tokyo region.
- Shifted GitHub Actions pipelines to native builds on ubuntu-24.04-arm and ubuntu-latest runners, replacing QEMU emulation.
- Resolved intermittent blank-screen issues in Argo CD caused by static JavaScript asset hash mismatches across multi-arch container builds.
- Addressed hardcoded amd64 binary downloads in automation scripts and initContainers that triggered exec format errors on arm64 nodes.
From Original Source
Motivation: Expanding Node Pools and Container Build Architecture
Running a Rails application on Amazon EKS, the operations team found that restricting workloads to Intel or AMD nodes limited Spot instance acquisition. By introducing AWS Graviton into Karpenter NodePools, the system expanded its candidate pool for 2-vCPU / 8-GiB instances, with t4g.large On-Demand pricing coming in roughly 21% lower than t3.large.
To support both platforms, the GitHub Actions pipeline was split into two independent build jobs running on ubuntu-latest and the newly released ubuntu-24.04-arm runner. After pushing images by digest to ECR, an aggregation job uses buildx to assemble and publish a unified manifest list.
- Leverage native arm64 runners in GitHub Actions to bypass performance bottlenecks inherent to QEMU emulation.
- Tag Datadog metrics with CPU architecture to benchmark service latency directly across processor families.
From Original Source
Gotchas in Heterogeneous Multi-Architecture Environments
During migration, several bootstrap scripts were discovered pulling amd64 kubectl binaries directly, causing exec format errors whenever pods landed on arm64 nodes. Engineers updated scripts to detect the host architecture via uname before downloading the appropriate binary.
Additionally, the Argo CD UI suffered intermittent blank-screen errors with HTTP 404s on core JavaScript bundles. This occurred because container builds across the two architectures produced mismatched asset hashes, breaking requests when traffic load-balanced across heterogeneous pods. The immediate resolution was pinning this tooling workload exclusively to arm64 nodes.
Vibe DevOps Editorial Commentary
Practical Takeaways for SRE and DevOps Engineers
DevOps Takeaway: Running a multi-arch compute layer is an effective way to mitigate Spot capacity crunches, but it demands consistency across image packaging and deployment pipelines. Before granting Karpenter free rein to provision arm64 nodes, rigorously audit Dockerfiles, manifests, and auxiliary tooling.
For applications serving static assets directly across multiple pod replicas, teams must ensure deterministic asset hashing across architectures or enforce appropriate session affinity to prevent asset load failures.
Commands & Configuration Snippets
Verbatim extract for quick lookup. Verify against your infrastructure before running.
ARCH=$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')Determine the node's hardware architecture to select the compatible binary in the initialization script.
⚠️ Operational Caveats & Limitations
- Actual Spot savings depend on real-time price fluctuations and capacity availability within specific cloud regions.
- Applications that compile static assets independently per architecture require thorough parity testing before distributing traffic across mixed node pools.