Skip to content

EKS Auto Mode mutates custom NodePool to include ARM64 despite explicit AMD64 requirements

0

Hello,I am using EKS Auto Mode and created a custom NodePool explicitly configured to use only AMD64 (x86_64) architecture. However, I noticed that EKS Auto Mode is mutating/modifying the NodePool configuration to include ARM64 machine types as well.As a result, ARM instances are being provisioned unexpectedly, which causes issues for my x86-only workloads.Is this expected behavior for EKS Auto Mode node management?How can I strictly enforce AMD64 architecture and prevent Auto Mode from modifying these constraints?Thank you!

asked 4 months ago142 views

3 Answers
1

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:

  1. Best Practice: Enforce Pod-level constraints using nodeSelector (as Taka detailed), forcing the scheduler to route only to your custom AMD64 pool.
  2. Cluster-Level Restriction: If you strictly want no ARM instances cluster-wide, you must delete or modify the default system-managed general-purpose NodePool to prevent it from fulfilling architecture-agnostic workloads.

Official Reference:

EXPERT

answered 4 months ago

0

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.

EXPERT

answered 4 months ago

EXPERT

reviewed 4 months ago

0

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.

AWS

answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.