All skills
aws avatar

/aws-containers

@df5d2e8

Builds and deploys containerized workloads on Elastic Kubernetes Service (EKS), Elastic Container Service (ECS), Fargate, and ECR (Elastic Container Registry). Covers general EKS knowledge, Karpenter, AWS Load Balancer Controller and leveraging various open source Kubernetes projects with EKS. Covers general ECS knowledge, task definitions, Fargate services, ECS Exec, ECS Express Mode and ECS Managed Instances. Covers general Elastic Beanstalk knowledge, Elastic Beanstalk configuration and platforms supported by Elastic Beanstalk. Covers general ECR knowledge, ECR repository setup and lifecycle policies. Includes recommending, enabling, and reading Amazon ECS Action Logs to troubleshoot control-plane failures (deployment rollback/circuit-breaker, task placement, scaling, task replacement). Applies when deploying, debugging, or optimizing containers on AWS. Should be used instead of relying on internal knowledge for these services.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/aws-containers

This session only. Nothing lands on disk.

referenceseks-managing-compute.md

≈2.8k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Managing EKS Compute

A Kubernetes node is a machine that runs containerized applications. Your Amazon EKS cluster can schedule Pods on any combination of EKS Auto Mode managed nodes, self-managed nodes, Amazon EKS managed node groups, AWS Fargate, and Amazon EKS Hybrid Nodes.

EKS Managed Node Groups

Amazon EKS managed node groups automate the provisioning and lifecycle management of nodes (Amazon EC2 instances) for Amazon EKS Kubernetes clusters.

Warm Pools

Amazon EKS managed node groups support Amazon EC2 Auto Scaling warm pools. A warm pool maintains pre-initialized EC2 instances alongside your Auto Scaling group that can quickly join your cluster during scale-out events. Instances in the warm pool have already completed the bootup initialization process and can be kept in a Stopped, Running, or Hibernated state. This is most useful for applications with long initialization or boot times, where waiting for a cold node to boot and join the cluster would delay pod scheduling.

Key considerations:

  • Always configure warm pools through the EKS API (create-nodegroup or update-nodegroup-config), not the EC2 Auto Scaling API directly — manual changes conflict with EKS management. EKS manages the pool via the AWSServiceRoleForAmazonEKSNodegroup service-linked role.
  • Configuration parameters: enabled, maxGroupPreparedCapacity (max combined instances across the warm pool and ASG), minSize (default 0), poolState (default Stopped), and reuseOnScaleIn (return instances to the pool on scale-in instead of terminating them; default false).
  • Custom AMIs are not supported — you must use EKS-optimized AMIs.
  • With Bottlerocket AMIs, the Hibernated pool state and reuseOnScaleIn are not supported; use Stopped or Running only.
  • The Hibernated pool state is only supported on specific instance types (see the EC2 hibernation prerequisites).
  • Updating warm pool settings doesn't affect instances already in the pool; new settings apply only to instances entering the pool afterward. Set enabled=false to disable the pool.
  • Cost: a warm pool that isn't needed adds unnecessary cost. Size it to your scaling patterns — a starting point is 10–20% of expected peak capacity.
  • Ensure your VPC has enough IP addresses for both the ASG and warm pool instances.
  • Not all instance types, AMIs, or configurations are supported; review the EC2 Auto Scaling warm pool prerequisites and limitations first.

Create a managed node group with a warm pool:

aws eks create-nodegroup \
  --cluster-name my-cluster \
  --nodegroup-name my-nodegroup \
  --node-role arn:aws:iam::111122223333:role/AmazonEKSNodeRole \
  --subnets subnet-12345678 subnet-87654321 \
  --region us-east-1 \
  --scaling-config minSize=2,maxSize=10,desiredSize=3 \
  --warm-pool-config enabled=true,maxGroupPreparedCapacity=8,minSize=2,poolState=Stopped,reuseOnScaleIn=true

Add a warm pool to (or update one on) an existing node group:

aws eks update-nodegroup-config \
  --cluster-name my-cluster \
  --nodegroup-name my-nodegroup \
  --region us-east-1 \
  --warm-pool-config enabled=true,maxGroupPreparedCapacity=10,minSize=3,poolState=Running,reuseOnScaleIn=true

Disable the warm pool attached to a node group:

aws eks update-nodegroup-config \
  --cluster-name my-cluster \
  --nodegroup-name my-nodegroup \
  --region us-east-1 \
  --warm-pool-config enabled=false

See the documentation for more information.

AWS Fargate

AWS Fargate is a serverless compute engine for containers that removes the need to provision and manage servers. With Fargate, you no longer have to select EC2 instance types, manage node scaling, or optimize cluster packing. Instead, you define Fargate profiles for your EKS cluster that specify which Pods should run on Fargate.

Note: For new clusters, we recommend EKS Auto Mode as the preferred approach to serverless compute. EKS Auto Mode provides a fully automated node management experience with broader feature support, including GPU workloads, EBS volumes, and a wider range of compute configurations. Consider Fargate for existing workloads that already use Fargate profiles or when your use case specifically requires the per-Pod microVM isolation model.

Fargate Profiles

A Fargate profile defines which Pods run on Fargate infrastructure. Each profile specifies:

  • One or more subnets (only private subnets are supported; Fargate Pods are not assigned public IP addresses)
  • One or more selectors, each containing a namespace and optional labels used to match Pods

When a Pod matches a selector in a Fargate profile, it is scheduled onto Fargate. A cluster can have multiple Fargate profiles. If a Pod matches multiple profiles, the first matching profile is used.

Key Considerations

  • Each Fargate Pod runs in its own isolated compute environment (a dedicated microVM) and does not share its underlying kernel, CPU, memory, or network interface with another Pod.
  • DaemonSets are not supported on Fargate. If your application requires a DaemonSet, consider using a sidecar container pattern instead.
  • Privileged containers and hostNetwork/hostPort are not supported on Fargate.
  • GPU workloads are not supported on Fargate.
  • If your Pod requires more resources than supported by Fargate, use Karpenter or Managed Node Groups.
  • Persistent storage is supported through Amazon EFS (via CSI driver). Amazon EBS volumes are not supported on Fargate.
  • The EKS node monitoring agent and automatic node repair are not available for Fargate Pods since AWS manages the underlying infrastructure.
  • Vertical Pod Autoscaler can be used to right-size Fargate Pod resource requests.

Fargate Pod Sizing

Fargate allocates compute resources based on the Pod's resource requests. It rounds up to the nearest Fargate-supported configuration. If no requests are specified, a default of 0.25 vCPU and 0.5 GB memory is applied. You should always set explicit resource requests to ensure Pods receive appropriate compute capacity and to avoid overpaying for unused resources.

When provisioned, each Pod running on Fargate receives ephemeral storage. This type of storage is deleted after a Pod stops.

See the documentation for more information on both pod sizing and ephemeral storage.

Pre-build optimized AMIs

You can deploy nodes with pre-built Amazon EKS optimized Amazon Machine Images (AMIs) or your own custom AMIs when you use managed node groups or self-managed nodes.

Amazon Linux 2 deprecation

AWS is ending support for EKS AL2-optimized and AL2-accelerated AMIs. After the end-of-support (EOS) date, EKS will no longer release any new Kubernetes versions or updates to AL2 AMIs, including minor releases, patches, and bug fixes, though existing AMIs remain usable. We recommend upgrading to Amazon Linux 2023 (AL2023) or Bottlerocket AMIs. Check the documentation below for the current EOS date.

See the documentation for more information.

Node health and repair

To help with maintaining healthy nodes in EKS clusters, EKS offers the node monitoring agent and automatic node repair. These features are automatically enabled with EKS Auto Mode compute. You can also use automatic node repair with EKS managed node groups and Karpenter, and can use the EKS node monitoring agent with any EKS compute types except for AWS Fargate. The EKS node monitoring agent and automatic node repair are most effective when used together, but they can also be used individually in EKS clusters.

If the user has expresses a specific type of node issue they wish help monitoring and remediating then you MUST consult the associated documentation below to confirm it is in scope for the corresponding feature.

Node monitoring agent

The EKS node monitoring agent reads node logs to detect health issues. It parses logs to detect failures and surfaces status information about the health status of the nodes. For each category of issues detected, the agent applies a dedicated NodeCondition to the worker nodes. For detailed information on the node health issues detected by the EKS node monitoring agent, see Detect node health issues with the EKS node monitoring agent.

Considerations:

  • EKS Auto Mode compute automatically includes the node monitoring agent.
  • For other EKS compute types, you can add the node monitoring agent as an EKS add-on or you can manage it with Kubernetes tooling such as Helm.

Automatic node repair

EKS automatic node repair continuously monitors node health, reacts to detected problems, and replaces or reboots nodes when possible. This improves cluster reliability with minimal manual intervention and helps reduce application downtime.

Considerations:

  • Automatic node repair is enabled by default in EKS Auto Mode and can also be used with EKS managed node groups and Karpenter. It relies on the NodeConditions surfaced by the node monitoring agent, so the two are most effective together.
  • It cannot be configured for EKS Auto Mode (always on with the same defaults as Karpenter). For Karpenter, enable the NodeRepair=true feature gate. For managed node groups, enable it at creation or update (for example --node-repair-config enabled=true, the console checkbox, or nodeRepairConfig.enabled: true in eksctl).
  • Repair only happens after the unhealthy condition persists for a wait period. Most conditions (Ready, KernelReady, NetworkingReady, StorageReady, ContainerRuntimeReady) wait 30 minutes and are repaired by replacing the node; AcceleratedHardwareReady (GPU/Neuron) waits 10 minutes. Standard DiskPressure and MemoryPressure conditions trigger no repair action.
  • Reboot as a repair action is only supported by EKS managed node groups. For EKS Auto Mode and Karpenter, all AcceleratedHardwareReady repairs are Replace.
  • Repair is paused automatically to avoid mass disruption: for managed node groups when the group has more than five nodes and more than 20% are unhealthy (or when an ARC zonal shift triggers); for Auto Mode and Karpenter when more than 20% of nodes in the NodePool (or cluster, for standalone NodeClaims) are unhealthy. In-progress repairs continue.
  • For managed node groups you can tune this behavior: set an unhealthy-node stop threshold (maxUnhealthyNodeThresholdCount or maxUnhealthyNodeThresholdPercentage), control concurrency (maxParallelNodesRepairedCount or maxParallelNodesRepairedPercentage), and override per-condition behavior with nodeRepairConfigOverrides (setting minRepairWaitTimeMins and a repairAction of Replace, Reboot, or NoAction for a specific nodeMonitoringCondition/nodeUnhealthyReason).

For more information on EKS automatic node repair, see Automatically repair nodes in EKS clusters.

Source: SKILL.md on GitHub

No alertstoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill provides technical guidance for AWS container services and appears to follow security best practices, such as recommending the use of Secrets Manager and least-privilege IAM roles. All external resources originate from official or well-known sources, and no security issues were detected.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: LOW · No issues

Signed by skilld at df5d2e8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago
What it can do
Reads files
metadata
{
  "version": "2"
}
All 1 allowed tools
Read

README badge

README badge for aws/agent-toolkit-for-aws/aws-containers