- Newest
- Most votes
- Most comments
EKS Auto Mode is NOT mutating your custom NodePool.
The behavior you are observing is caused by Auto Mode's system-managed default NodePools (specifically the general-purpose pool).
As to my knowledge, by design, AWS provisions these built-in NodePools to support multiple architectures, including both amd64 and arm64. If your Pods are deployed without explicit architecture constraints, the scheduler evaluates all available NodePools in the cluster. It will frequently fall back to the default general-purpose pool and provision ARM64 (Graviton) instances because they are highly available and cost-effective.
Your custom AMD64 NodePool remains unmodified; the ARM nodes are simply being provisioned by the parallel, system-managed pool.
To resolve this, I see two options:
- Best Practice: Enforce Pod-level constraints using
nodeSelector(as Taka detailed), forcing the scheduler to route only to your custom AMD64 pool. - Cluster-Level Restriction: If you strictly want no ARM instances cluster-wide, you must delete or modify the default system-managed
general-purposeNodePool to prevent it from fulfilling architecture-agnostic workloads.
Official Reference:
- Amazon EKS Auto Mode built-in resources (AWS Documentation confirms the default
general-purposepool handles generic compute across architectures unless strictly constrained).
Rather than relying solely on constraints at the NodePool level, the most reliable approach—consistent with Karpenter's design—is to add explicit constraints to the Pod specification of the workload (e.g., Deployment or DaemonSet).
spec:
template:
spec:
nodeSelector:
kubernetes.io/arch: amd64
# Or specify explicitly using affinity
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values: ["amd64"]
This ensures that the Pod's scheduling requirements themselves mandate AMD64 nodes, thereby forcing Karpenter to exclude any NodePool capable of providing arm64 nodes from consideration.
Building on the answers above — once you enforce AMD64 via Pod-level nodeSelector or NodePool requirements, Karpenter's disruption policies handle the cleanup of any ARM nodes that were already provisioned:
Drift Detection — When you update your custom NodePool spec to strictly require amd64, Karpenter detects that existing nodes no longer match the current spec. It gracefully cordons, drains, and replaces them with compliant AMD64 nodes.
Consolidation — After applying nodeSelector: kubernetes.io/arch: amd64 to your workloads, ARM nodes become idle (no Pods can schedule to them). With consolidationPolicy: WhenEmptyOrUnderutilized, Karpenter automatically terminates these empty nodes — no manual cleanup needed.
Expiration — Setting expireAfter on the default general-purpose NodePool forces periodic node recycling. Nodes are terminated and re-provisioned against current scheduling constraints, preventing stale ARM nodes from lingering indefinitely.
spec: disruption: consolidationPolicy: WhenEmptyOrUnderutilized expireAfter: 24h budgets: - nodes: "10%"
In short: Disruption doesn't prevent ARM provisioning — that's the job of nodeSelector and NodePool requirements. Disruption ensures your cluster converges to the correct state by evicting and replacing any non-conforming nodes that already exist.
answered 4 months ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 5 months ago
