Skip to main content

EKS-based Agentic AI Open Architecture

52 min read
Prerequisite Documents

Before reading this document, refer to the following documents first:


Why EKS-based Open Architecture?​

AWS Native Platform is a powerful approach for getting started quickly. Custom agent workflows (LangGraph, MCP/A2A), multi-provider routing, and open-weight models can also be built with AWS Native services (for example, Bedrock AgentCore Runtime and AgentCore Gateway); the items below are therefore not service exclusions but the concrete control and placement requirements that lead this guide to choose an EKS-based open architecture:

  • Direct control of model weights and runtime: Host open-weight models (Llama, Qwen, DeepSeek, etc.) on your own containers and GPU nodes, managing the inference engine version, quantization, and batching strategy yourself
  • Hybrid placement: Unify on-premises GPU and cloud into a single Kubernetes cluster (EKS Hybrid Nodes)
  • Kubernetes-native custom workflows: Place and scale LangGraph, MCP, and A2A components at the Pod and CRD level
  • Self-operated multi-provider routing: Run gateways such as the Bifrost 2-Tier Gateway inside the cluster
  • Fine-grained GPU cost optimization: Tune Spot, MIG, and Consolidation to your workload characteristics
Platform Comparison

For a 5-axis comparison of AWS Native, SageMaker Unified Studio, EKS open architecture, and hybrid approaches, refer to AI Platform Selection Guide.

Key Message: AWS Native → EKS is a complementary relationship. A realistic approach is to start with AWS Native and expand to EKS as needed. Both approaches can coexist within the same VPC.


Quick Start with EKS Auto Mode​

EKS Cluster Configuration Options: Control Plane and Data Plane​

EKS cluster configuration is divided into two independent layers.

Figure 1. EKS control plane and data plane configuration options

Expand the diagram to read labels and follow connections.
Diagram

Provisioned Control Plane (PCP)​

PCP is a premium option that provisions control plane capacity in advance with fixed tiers, ensuring consistent API server performance. The seats, Pod scheduling, and etcd values below are the capacity limits provisioned for each tier, not a guarantee of a specific application's measured throughput or latency.

PCP Tier Specifications (K8s v1.30–v1.33)​

Table 1. PCP tier capacity limits and added cost

TierAPI Concurrency (seats)Pod Schedulingetcd DBSLAAdded Tier Cost
StandardDynamic (AWS auto-adjusted)Dynamic8GB99.95% (5-min intervals)No added tier cost
XL1,700167/sec16GB99.99% (1-min intervals)$1.65/hr
2XL3,400283/sec16GB99.99% (1-min intervals)$3.40/hr
4XL6,800400/sec16GB99.99% (1-min intervals)$6.90/hr
8XL13,600400/sec16GB99.99% (1-min intervals)$13.90/hr

Source: AWS EKS Provisioned Control Plane Official Documentation, Amazon EKS pricing (prices as of retrieval). The seat and Pod scheduling figures above apply to K8s v1.30–v1.33; v1.34 and later increase the per-tier capacity, so check the corresponding version table in the official documentation. PCP tier cost is billed in addition to the standard EKS cluster fee ($0.10/cluster-hr under standard support, about $73/month); Standard mode has no added tier cost.

Tier Selection Criteria: Metric-based Judgment​

Worker Node Count Is Not a PCP Tier Selection Criterion

PCP tier should be selected based on Kubernetes control plane metrics.

Key Monitoring Metrics (the thresholds below are example operating policies that leave headroom below each tier's limit; validate and adjust them against your workload):

Table 2. Key monitoring metrics and example criteria for PCP tier selection

MetricPrometheus QueryExample Judgment Criterion
API Inflight Seats (Most Important)apiserver_flowcontrol_current_executing_seatsSustained above 1,200 seats (~70% of the XL limit of 1,700) → consider a higher tier
Pod Scheduling Raterate(scheduler_schedule_attempts_total{result="scheduled"}[5m])Sustained 100/sec or higher → consider XL, 200/sec or higher → consider 2XL
etcd DB Sizeapiserver_storage_size_bytesStandard etcd caps at 8GB, so above 6GB (~75%) consider a PCP tier that provides 16GB
PCP vs Auto Mode — Different Layers

PCP is a control plane capacity option, and Auto Mode is a data plane management option. Both features can be used in combination.

Control Plane × Data Plane Comparison and Combination​

Control Plane: Standard vs Provisioned (PCP)
FeatureStandard (Default)Provisioned Control Plane (PCP)
ScalingDynamic auto-scaling (AWS managed)Fixed tier (pre-provisioned)
API Concurrency (seats)Dynamic (AWS auto-adjusted)XL: 1,700 / 2XL: 3,400 / 4XL: 6,800 / 8XL: 13,600 (K8s v1.30–v1.33, provisioned capacity)
Pod Scheduling RateDynamicXL: 167 / 2XL: 283 / 4XL–8XL: 400 pods/sec (K8s v1.30–v1.33)
etcd DB Size8 GB16 GB
SLA99.95%99.99%
Cost$0.10/hr ($73/mo)Per-tier pricing (see AWS pricing page)
Tier Selection Criteria-API Inflight Seats + Pod Scheduling Rate + etcd DB Size (NOT node count)
Data Plane: MNG vs Karpenter vs Auto Mode
FeatureManaged Node GroupsKarpenterEKS Auto Mode
Node ProvisioningManual (ASG-based)Automatic (Pod-driven)Fully automatic (AWS managed)
GPU OptimizationManual instance selectionAuto GPU selectionAuto + default NodeClass
Scaling SpeedSlow (ASG → EC2)Fast (direct EC2 API)Fast (built-in Karpenter)
Add-on MgmtManual (CNI, CSI, etc.)Manual Automatic
Security PatchesManual AMI updateManual Automatic
Cost OptimizationLimitedConsolidation + SpotConsolidation + per-EC2-instance-type management fee
Operational BurdenHighMediumLow
Recommended Combination Matrix
CombinationControl PlaneData PlaneBest For
General AI ServiceStandardAuto ModeSmall-mid inference, minimal ops
GPU-Optimized PlatformStandardKarpenterMulti-GPU, Spot, cost optimization
Large AI PlatformPCP (tier-xl+)Auto ModeAPI perf guaranteed (1,700+ seats) + auto ops
Ultra-Scale TrainingPCP (tier-4xl+)KarpenterAPI concurrency 6,800+, fine GPU control
Recommended Configuration by AI Platform Scale
  • Small-scale (PoC/Demo): Standard + Auto Mode — Minimal operational burden, 99.95% SLA
  • Medium-scale (Production Inference): Standard + Karpenter — GPU cost optimization, 99.95% SLA
  • Large-scale (Enterprise AI): PCP XL + Auto Mode — API seats ≤ 1,700, 99.99% SLA
  • Extra-large-scale (Training Cluster): PCP 4XL+ + Karpenter — API seats ≤ 6,800+, fine-grained GPU control

Amazon EKS and Karpenter: Maximizing Kubernetes Advantages​

In Amazon EKS, Karpenter provisions nodes for Pods that cannot be scheduled, using their resource requests and scheduling constraints. Operators define the allowed instances and placement conditions in a NodePool, the node configuration in a NodeClass, and the drivers and device plugins needed by GPU workloads. Karpenter adds node capacity; application replica counts are managed separately. Compare node readiness time, instance choices, and cost with Cluster Autoscaler using the same workload.

Karpenter Detailed Guide

For Karpenter v1.10+ (GA since v1.0, 2024-08), NodePool configuration, GPU instance comparison, and cost optimization strategies, refer to GPU Resource Management.

EKS + Karpenter + AWS Infrastructure Layers
LayerRoleValue Provided
Amazon EKSManaged Kubernetes control planeRemoves operational burden, high availability, security
KarpenterIntelligent node provisioningJust-in-time GPU provisioning, cost optimization
AWS InfrastructureGPU instances, storage, networkVaried GPU options, EFA high-speed network, Spot instances

EKS Auto Mode: Complete Automation​

EKS Auto Mode manages Karpenter (compute autoscaling), Pod and service networking, local DNS, block storage, and GPU support as built-in core components rather than separately installed add-ons. Each item in the diagram below is not something you install and upgrade as an individual add-on, but a capability Auto Mode provides at the node level.

Figure 2. Core features built into EKS Auto Mode

Expand the diagram to read labels and follow connections.
Diagram
CoreDNS when mixing Auto Mode and non-Auto Mode nodes

Auto Mode nodes use a node-local DNS running as a system service on each node instead of the traditional CoreDNS Deployment. If you run Auto Mode and non-Auto Mode nodes in the same cluster, the non-Auto Mode nodes cannot reach the node-local DNS, so you must retain the existing CoreDNS Deployment. Source: EKS Auto Mode networking.

EKS Auto Mode vs Manual Configuration Comparison​

EKS Auto Mode vs Manual Configuration
ComponentManual Configuration (EKS Standard)EKS Auto Mode
Karpenter installManual Helm chart install, IAM role setup Automatic install and configuration
NodePool managementMust be defined manuallyDefaults provided + customizable
VPC CNIManual install and upgrade Automatically managed
EBS CSI DriverManual install, IRSA setup Automatically managed
CoreDNSManual scaling Automatic scaling
Security patchesApplied manually Applied automatically
Version upgradesPlanned and run manually Automatic upgrades

EKS Auto Mode Configuration for GPU Workloads​

EKS Auto Mode automatically configures and manages Karpenter. When you define a GPU NodePool and your workload's scheduling constraints (instance family, GPU memory, nvidia.com/gpu requests, and so on), Auto Mode provisions a matching accelerated instance to run the AI workload. An actual deployment also requires choosing an instance family suited to the model, the per-Region GPU quota, and the container image.

NodePool Configuration Details

For detailed configuration including GPU NodePool composition, Spot/On-Demand strategy, Consolidation policy, refer to GPU Resource Management.

EKS Auto Mode and GPU Support

EKS Auto Mode supports selected accelerated computing instances, including NVIDIA GPU and AWS Trainium/Inferentia, and automatically manages the kernel drivers and device plugins (NVIDIA/Neuron) those instances require at the node level. This automatic management covers the drivers and device plugins; the Neuron SDK, frameworks, and inference runtime your application uses are packaged and managed by you in the container. For supported instances and example NodePools, see the accelerated workload deployment guide.

re:Invent 2024/2025 New Features:

  • EKS Hybrid Nodes (GA): Integrate on-premises GPU infrastructure into EKS cluster
  • EKS Pod Identity Target IAM Roles (2025-06): Cross-account IAM role chaining support
  • Native Inferentia/Trainium Support: Automatic Neuron driver/device-plugin configuration (application Neuron SDK is separate)
  • Provisioned Control Plane: Pre-provisioning for large-scale AI training workloads

Agentic AI Components Deployable on Auto Mode​

All core components of the Agentic AI platform can be deployed on EKS Auto Mode.

Inference: vLLM + llm-d​

vLLM is an open-weight LLM inference engine, and llm-d provides intelligent routing considering KV cache state.

Model Serving Stack Configuration
  • vLLM: An inference engine that self-hosts open-weight model architectures published on Hugging Face (Llama, Qwen, DeepSeek, Mistral, etc.), supporting not only text generation but also pooling tasks such as embedding, reranking, and classification — PagedAttention-based KV cache optimization. Commercial APIs such as GPT and Claude do not publish their weights and cannot be hosted by vLLM; those are proxied as external APIs through the Bifrost gateway.
  • Triton Inference Server: A general-purpose serving server that can handle both non-LLM inference (embedding, reranking, Whisper STT) and LLM inference across multiple backends (TensorRT, ONNX, PyTorch, etc.)
  • llm-d: Maximizes prefix cache hit rate with KV Cache-aware routing

For detailed configuration, refer to vLLM Model Serving and llm-d Distributed Inference.

Gateway: kgateway + Bifrost (2-Tier Gateway)​

Separates traffic management and model routing with 2-Tier Gateway architecture:

  • Tier 1 (kgateway): Gateway API-based authentication, rate limiting, traffic management
  • Tier 2 (Bifrost): Model abstraction, fallback, cost tracking, cascade routing

For detailed architecture, refer to Inference Gateway Routing.

Agent: LangGraph + NeMo Guardrails + MCP/A2A​

Agent workflows on EKS consist of:

Figure 3. Components of an EKS-based agent workflow

Expand the diagram to read labels and follow connections.
Diagram
  • LangGraph: Multi-step agent workflow definition, conditional branching, parallel execution
  • NeMo Guardrails: A content-level defense-in-depth layer that performs prompt-injection mitigation, PII leak mitigation, and output validation. It does not itself provide authentication, authorization, TLS, or rate limiting, so access control must be enforced by a fronting API gateway, reverse proxy, or sidecar (source: NeMo Guardrails SECURITY). For tool comparison and implementation details, refer to AI Gateway Guardrails
  • MCP: Agent Ready apps provide tools in a standardized way
  • A2A: Inter-agent communication protocol (transport security and authentication are configured separately in the deployment)
  • Redis (ElastiCache): Agent state management via the LangGraph checkpointer — a state store, not a work queue.

Agent Pod autoscaling is driven by queue length against a real work queue (such as a Redis List) monitored by KEDA's Redis Lists scaler (listName, listLength), separate from the state store. The checkpointer key-value store itself does not expose a queue-length signal.

For details, refer to Kagent Agent Management and AWS Native Platform — AgentCore & MCP. For Guardrails technology stack (Input/Output Guard, Tool Allow-list, kgateway/Bifrost integration), refer to AI Gateway Guardrails.

RAG + Observability​

  • Milvus: Vector DB — Core of RAG system (Details)
  • Langfuse: Production LLM tracing, token cost tracking (Architecture, Deployment Guide)
  • Prometheus + Grafana: Infrastructure metrics monitoring

EKS-based Easy Deployment​

EKS-based Deployment Benefits
BenefitDescription
Immediate StartDeploy GPU workloads immediately after cluster creation without Karpenter installation/configuration
Automatic UpgradesAutomatic updates for core components like Karpenter, CNI, CSI
Automated Security PatchingAutomatic application of security vulnerability patches
Extensible with Custom ConfigurationAdd custom settings like GPU NodePool, EFA NodeClass when needed

EKS Deployment Methods by Solution​

EKS Integration Methods
SolutionDeployment MethodEKS Integration
KarpenterEKS Auto Mode (automatic)No install/configuration needed, automatic upgrades
KgatewayHelm ChartIntegrates with ALB Controller and ACM certificates (requires separate setup)
BifrostHelm ChartIntegrates with Secrets Manager, Pod Identity/IRSA-based auth (requires separate setup)
vLLMHelm ChartProvisioned via GPU NodePool
llm-dHelm ChartScaling integrated with Karpenter
LangfuseHelm ChartIntegrates with RDS/Aurora and S3 storage (requires separate setup)
KAgentHelm ChartAWS service access via Pod Identity
KEDAHelm ChartIntegrates with metric scalers such as CloudWatch (not an official EKS Capability; install it yourself)

Easy Deployment Example​

For deployment guide, refer to Reference Architecture.

GPU Cost Optimization Details

For GPU cost optimization strategies including Spot instance usage, Consolidation, and schedule-based cost management, refer to GPU Resource Management document.

GPU Security and Troubleshooting

For GPU Pod security policies, Network Policy, IAM, MIG isolation, and GPU troubleshooting guide, refer to EKS GPU Node Strategy document.


Minimize Infrastructure Operational Burden with EKS Capability​

What is EKS Capability?​

EKS Capability is a fully managed cluster feature from AWS that provides declarative continuous deployment (Argo CD), AWS resource management (ACK), and Kubernetes resource orchestration (kro). These features run within EKS rather than on your worker nodes, and are independent cloud resources you can pick and enable individually (source: EKS Capabilities).

In the diagram below, only the "Managed EKS Capability" block (ACK, kro, Argo CD) consists of official AWS EKS Capabilities; the AI/Data/App groups are this architecture's own classification of workloads for explanation and are not official capabilities.

Figure 4. EKS Capability and workload group composition

Expand the diagram to read labels and follow connections.
Diagram

Core EKS Capabilities for Agentic AI​

EKS Advanced Capabilities
EKS CapabilityRoleAgentic AI UseDelivery
ACK (AWS Controllers for Kubernetes)Kubernetes-native management of AWS servicesS3 model repository, RDS metadata, SageMaker training jobsManaged EKS Capability
kro (Kube Resource Orchestrator)Composite resource abstraction and templatingOne-click deployment of AI inference stacks and training pipelinesManaged EKS Capability
Argo CDGitOps-based continuous deploymentModel serving deployment automation, rollback, environment syncManaged EKS Capability
Argo Workflows Requires Separate Installation

Argo Workflows is not officially supported as an EKS Capability, so direct installation is required.

For deployment guide, refer to Argo Workflows Official Documentation.


ACK (AWS Controllers for Kubernetes)​

ACK directly provisions and manages AWS services through Kubernetes Custom Resources. It can be enabled as a fully managed EKS Capability or installed yourself via a Helm chart.

Figure 5. ACK controller provisioning flow for AWS resources

Expand the diagram to read labels and follow connections.
Diagram

ACK Usage Examples in AI Platform:

ACK Controllers Usage
AWS ServiceACK ControllerAgentic AI Use
S3`s3.services.k8s.aws`Model artifact repository, training data buckets
RDS/Aurora`rds.services.k8s.aws`Langfuse backend, metadata store
SageMaker`sagemaker.services.k8s.aws`Model training jobs, endpoint deployment
Secrets Manager`secretsmanager.services.k8s.aws`API keys, model credential management
ECR`ecr.services.k8s.aws`Container image registry

S3 Bucket Creation Example with ACK:

apiVersion: s3.services.k8s.aws/v1alpha1
kind: Bucket
metadata:
name: agentic-ai-models
namespace: ai-platform
spec:
name: agentic-ai-models-prod
versioning:
status: Enabled
encryption:
rules:
- applyServerSideEncryptionByDefault:
sseAlgorithm: aws:kms
tags:
- key: Project
value: agentic-ai

KRO (Kubernetes Resource Orchestrator)​

KRO combines multiple Kubernetes resources and AWS resources into one abstracted unit to deploy complex infrastructure simply.

Figure 6. Resources grouped by a KRO ResourceGroup

Expand the diagram to read labels and follow connections.
Diagram

Deploy AI Inference Stack as a single resource with kro:

The following is an example instance of an AIInferenceStack API that a platform team first defines with a ResourceGraphDefinition (RGD). A kro instance's apiVersion is kro.run/v1alpha1, and its kind (AIInferenceStack) and spec schema are generated by that RGD. This manifest alone does not deploy anything; the corresponding RGD must already be applied to the cluster.

# AIInferenceStack instance example (requires the corresponding RGD first)
apiVersion: kro.run/v1alpha1
kind: AIInferenceStack # custom kind defined by the RGD
metadata:
name: llama-inference
namespace: ai-platform
spec:
modelName: llama-3-70b
# A 70B model's GPU memory requirement depends on precision and tensor parallelism.
# e.g. FP16 weights (~140GB) do not fit on a single g5.12xlarge (4x A10G 24GB = 96GB),
# so quantization (e.g. INT8/FP8) or multi-GPU nodes/tensor parallelism are needed.
gpuType: g5.12xlarge
minReplicas: 2
maxReplicas: 20

For how to author an RGD and the instance-creation flow, see the kro ResourceGraphDefinition deployment guide.

Argo-based ML Pipeline Automation​

Combining Argo Workflows and Argo CD enables full MLOps pipeline automation in GitOps style from AI model training, evaluation, to deployment.

Figure 7. Argo-based GitOps ML pipeline

Expand the diagram to read labels and follow connections.
Diagram

ACK + KRO + ArgoCD Integration Architecture​

Figure 8. Integrated ACK, KRO, and Argo CD deployment architecture

Expand the diagram to read labels and follow connections.
Diagram
Automation Components
ComponentRoleAutomation Scope
Argo CDGitOps deployment automationApplication deployment, rollback, sync
Argo WorkflowsML pipeline orchestrationTraining, evaluation, model registration workflows
kroComposite resource abstractionManages K8s + AWS resources as a single unit
ACKDeclarative AWS resource managementAWS services such as S3, RDS, SageMaker
KarpenterGPU node provisioningJust-in-time instance provisioning
Benefits of Complete Automation — Delegate Infrastructure Operations to EKS and Focus on Agent Development
  • Developer: Model deployment with just Git push
  • Platform Team: Minimize infrastructure management burden
  • Cost Optimization: Dynamic provisioning of only necessary resources
  • Consistency: Same deployment method across all environments

Conclusion and Next Steps​

Progressive Journey: AWS Native → Auto Mode → EKS Capability​

Figure 9. Progressive expansion path from AWS Native to EKS Capability

Expand the diagram to read labels and follow connections.
Diagram
EKS Auto Mode Benefits
BenefitDescription
Immediate StartDeploy GPU workloads right after cluster creation without installing/configuring Karpenter
Automatic UpgradesAutomatic updates for core components like Karpenter, CNI, CSI
Automated Security PatchingAutomatic application of security vulnerability patches
Extensible with Custom ConfigurationAdd custom settings like GPU NodePool and EFA NodeClass when needed

Solution Summary by Challenge​

Challenge Solutions Summary
ChallengeKubernetes-BasedEKS Auto Mode + KarpenterRole
GPU Resource MgmtDCGM + PrometheusNodePool-based management + MIGGPU visibility and partitioning (utilization gains measured per workload)
Inference Routingkgateway + Bifrostllm-d KV Cache-aware routingImproves routing efficiency via prefix cache reuse
LLMOps ObservabilityLangSmith (Dev) + Langfuse (Prod)Tracing + token cost trackingOperational visibility (cost reduction measured from Spot/Consolidation)
Agent OrchestrationLangGraph + NeMo GuardrailsAgent Pod scaling + content guardrailsWorkflow control and defense-in-depth
Model Supply ChainMLflow + Kubeflow + ArgoCDTraining NodePool + EFATraining infrastructure automation (efficiency measured per workload)

EKS Auto Mode GPU Limitations and Hybrid Strategy​

EKS Auto Mode is optimal for general workloads and basic GPU inference, but has limitations for advanced GPU features.

Table 3. EKS Auto Mode suitability by workload type

Workload TypeAuto Mode SuitabilityReason
API Gateway, Agent FrameworkSuitableNon-GPU, automatic scaling sufficient
Observability StackSuitableNon-GPU, minimize management burden
Basic GPU Inference (Full GPU)SuitableAWS-managed GPU stack sufficient
MIG Partitioning NeededUnsuitableAuto Mode manages the node AMI as immutable, so the node-level settings MIG partitioning requires cannot be applied (a NodeClass can tune networking, storage, etc., but not the OS/AMI). The GPU Operator itself can be installed
Run:ai GPU SchedulingUnsuitableRun:ai does not support Bottlerocket or Amazon Linux on EKS, so it must run with the full GPU Operator stack on self-managed Karpenter nodes using a supported OS. Confirm mode-by-mode compatibility against the vendor support matrix before adopting

Recommended hybrid configuration: Operate Auto Mode (general workloads) + Karpenter (advanced GPU features) in a single cluster. For detailed configuration, refer to EKS GPU Node Strategy.

Gateway API Limitations and Workarounds​

EKS Auto Mode's built-in load balancer does not directly support Kubernetes Gateway API. To use kgateway, provision an NLB with a separate Service (type: LoadBalancer) that targets the kgateway proxy. In Auto Mode, loadBalancerClass: eks.amazonaws.com/nlb is set as the default, and new deployments use aws-load-balancer-type: external.

apiVersion: v1
kind: Service
metadata:
name: kgateway-proxy
namespace: kgateway-system
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: "external"
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "ip"
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
# TLS termination: configured by the two annotations below, not by the port name.
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:<region>:<account>:certificate/<cert-id>"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
spec:
type: LoadBalancer
loadBalancerClass: eks.amazonaws.com/nlb # Auto Mode default (can be omitted)
selector:
# Replace with the actual kgateway proxy Pod labels (example below).
app.kubernetes.io/name: kgateway
ports:
- name: https
port: 443
targetPort: 8443
Verify TLS and the selector

Naming the port https does not configure TLS. To terminate TLS at the NLB, use the aws-load-balancer-ssl-cert (ACM certificate ARN) and aws-load-balancer-ssl-ports annotations above. The selector must match the actual kgateway proxy Pod labels, and the port/target mapping should be confirmed against the kgateway version you deploy. The official annotation page is internally inconsistent about legacy type values, so validate the applied annotations on a real cluster rather than asserting the outcome (source: EKS Auto Mode NLB annotations).

For complete 2-Tier Gateway architecture design, refer to LLM Gateway 2-Tier Architecture.

Key Recommendations​

  1. Start with EKS Auto Mode: Create new clusters with Auto Mode to leverage automatic Karpenter configuration
  2. Advanced GPU Features on Karpenter Nodes: Add Karpenter NodePool when GPU Operator needed for MIG, Run:ai, etc.
  3. GPU NodePool Custom Definition: Add GPU NodePool suited to workload characteristics (separate inference/training/experimentation)
  4. Use Spot Instances for interruption-tolerant workloads: The Spot share is not a fixed number; decide it per workload based on interruption tolerance, checkpoint/recovery ability, and available capacity. Apply it to workloads that can absorb interruptions (stateless or checkpointable batch inference) and configure On-Demand fallback.
  5. Enable Consolidation by Default: Leverage auto-enabled Consolidation in EKS Auto Mode
  6. KEDA Integration: Link metric-based Pod scaling with Karpenter node provisioning

Choose Deployment Path​

When Suitable:

  • Startups and small teams
  • Kubernetes beginner teams
  • Standard Agentic AI workloads

Getting Started:

For deployment guide, refer to EKS Auto Mode Official Documentation.

Advantages: AWS manages node provisioning, upgrades, and security patches, greatly reducing infrastructure operations burden. You still manage applications, NodePools, and cost, and an Auto Mode management fee applies in addition to EC2 cost.

Reference Documents for Scaling​

Table 4. Reference documents by area for scaling

AreaDocumentContent
GPU Node StrategyEKS GPU Node StrategyAuto Mode + Karpenter + Hybrid Node + Security/Troubleshooting
GPU Resource ManagementGPU Resource ManagementKarpenter scaling, KEDA, DRA, cost optimization
NVIDIA GPU StackNVIDIA GPU StackGPU Operator, DCGM, MIG, Time-Slicing
Model ServingvLLM Model ServingvLLM configuration, performance optimization
Distributed Inferencellm-d Distributed InferenceKV Cache-aware routing
Training InfrastructureNeMo FrameworkDistributed training, EFA network

References​

Official Documentation​

Papers / Technical Blogs​