ECS and EKS container orchestration
Floci provides AWS-shaped ECS and EKS control planes with optional Docker-backed execution. ECS turns task definitions into tasks and keeps services at their desired size. EKS manages cluster state, access, identity, add-ons, and capacity records while a local Kubernetes control plane runs when real execution is enabled. Both services keep API state separate from local runtime state.
Orchestration model
ECS and EKS use different workload models but share a Docker execution boundary. ECS starts application containers. EKS starts a local Kubernetes control-plane container for each real cluster.
| Concern | ECS | EKS |
|---|---|---|
| Main resource | Task definition, task, service, or cluster | Cluster with access, identity, add-on, and capacity records |
| Local runtime | Docker containers for task containers | One local Kubernetes control-plane container per real cluster |
| State without Docker | API records remain available; tasks use metadata-only state | Cluster records remain available without a Kubernetes API server |
| Main client surface | ECS API, task metadata, task credentials, ECS Exec, load balancers, and service discovery | EKS API and the Kubernetes API |
The shared boundary is the Docker daemon. Network access, image access, storage, identity, and cleanup must cross that boundary for live execution to behave like the AWS service.
ECS workload model
ECS separates the launch contract from each launch and from the controller that maintains a group of launches. This separation lets clients register revisions, run one-off tasks, or ask a service to replace tasks as its configuration changes.
Task definitions
A task definition is a versioned launch contract for one or more containers. Registration validates the requested network mode, resources, compatibility, dependencies, volumes, roles, logging, and platform rules before it stores a new revision.
The definition remains an AWS-shaped record even when local execution does not use every field. A service or task launch resolves a family or revision to a specific stored definition, so later revisions do not silently change existing tasks. Its runtime platform also selects the container operating system and CPU architecture used for image execution. An explicitly requested architecture can therefore run through Docker emulation when the host uses another architecture.
The ECS API keeps supported fields in the response and preserves fields that Floci does not act on. This lets clients read back the launch contract without confusing an unsupported runtime feature with a missing API field.
References: src/…/EcsJsonHandler.java• L285-320 src/…/EcsResponseWriter.java• L148-213 src/…/TaskDefinition.java• L12-39
Tasks
A task is one launch of a task-definition revision. It reports desired and current status, placement, overrides, container results, network data, identity settings, and the reason for a failed or stopped launch.
The task record is separate from its local runtime handle. The handle tracks Docker container IDs, logs, task volumes, network cleanup, exit data, and teardown progress. This lets ECS retain a useful stopped-task record while cleanup continues or while no Docker runtime exists. Service ownership and deployment identity are recorded separately from the caller's free-form task group, so service actions cannot claim an unrelated task.
Task launches create the task record in PENDING state. A live launch becomes RUNNING only after its required containers start. A failed launch becomes STOPPED and releases the network resources that it created. ECS state-change events expose the lifecycle to EventBridge with the AWS event shape. Task responses also expose launch timing, stop timing, overrides, network attachments, container bindings, health, and managed-agent status through the ECS response shape.
This diagram shows the common path from a stored definition to a running or stopped task.
flowchart LR
A[Register task definition] --> B[Run task or reconcile service]
B --> C[Create PENDING task]
C --> D{Docker execution enabled}
D -->|No| E[Build metadata-only containers]
D -->|Yes| F[Prepare network identity images and volumes]
F --> G[Start containers in dependency order]
G -->|Success| H[Mark RUNNING]
G -->|Failure| I[Mark STOPPED and clean up]
E --> H
H --> J[Register targets and publish events]
I --> K[Publish failure state]
J --> L[Reconcile later state]
References: src/…/EcsService.java• L606-718 src/…/EcsService.java• L1632-1799 src/…/EcsContainerManager.java• L243-369 src/…/EcsTaskHandle.java• L11-160 src/…/EcsTask.java• L11-74
ECS services
An ECS service is a desired-count controller for service-owned tasks. Its reconciler starts tasks when the current revision is below the requested count and stops stale tasks after a task-definition or rolling configuration change.
Replica scheduling targets the requested count. Daemon scheduling places one task on each eligible container instance. Capacity-provider strategies choose how tasks are placed and can use the built-in Fargate providers or a recorded EC2 provider. Container instances and capacity providers remain useful AWS-facing records even when local execution uses a shared Docker host.
A service update creates an immutable service revision that captures the deployment's task definition, launch settings, network, image, load-balancer, registry, and service-connect inputs. Later changes to the service do not rewrite that deployment snapshot. A Service Connect endpoint also owns a Cloud Map service in the selected namespace. ECS creates, reuses, or removes those endpoint services as the service configuration changes, then reports each endpoint as a ServiceConnectServiceResource.
The service reaches steady state when the current revision has the desired number of running tasks and protected or older tasks do not block convergence. A task launch failure or an early task stop makes the stability wait fail instead of waiting for a state that cannot be reached. Deployment records and events give clients a stable way to follow that change. This steady-state contract is also what CloudFormation waits for when it creates or updates an ECS service.
When a service names an ELBv2 target group, ECS registers the reachable binding of each running task container. It records those registrations before the external registration so a restart can release only targets owned by that task. A stopping service task enters a drain period when the target group requires one, and the service waits for registered targets to become healthy before replacing a task during a rolling deployment. Service discovery follows the same ownership idea when registries are configured. Cloud Map receives task addresses and service metadata, so a service name can resolve to the current task rather than to a stale container.
References: src/…/EcsService.java• L628-750 src/…/EcsService.java• L3007-3184 src/…/EcsService.java• L3280-3349 src/…/EcsService.java• L3717-3734 src/…/EcsLoadBalancerRegistrar.java• L74-175 src/…/EcsServiceDiscoveryRegistrar.java• L258-427 src/…/ServiceConnectServiceResource.java• L5-11 src/…/EcsServiceModel.java• L13-71
Container execution
EcsContainerManager turns a task definition and its launch overrides into Docker containers. It prepares task-level network, identity, images, secrets, parameters, and logging inputs before creating the first container. This keeps a failed initialization from exposing a partly visible workload. It also samples Docker resource usage for the task metadata stats view, so a metadata client sees runtime data only while the daemon can provide it.
Containers start in dependency order. A dependency can require another container to start, exit, succeed, or become healthy. The runtime also applies task and container resource limits, commands, ports, health checks, log drivers, FireLens routing, task-scoped volumes, and the task definition's runtime platform. The task metadata model reports the resulting Docker IDs, bindings, health, image digest, and managed agents.
FireLens provides a task-local path for container logs. Floci generates the matching Fluent Bit or Fluentd configuration, adds ECS task metadata when requested, and sends supported AWS output plugins to the emulated endpoint without replacing an endpoint supplied by the workload.
If a later container fails, ECS retains the partial launch handle while it removes containers, log streams, volumes, and network helpers. Task teardown waits for the configured stop behavior, records exit data before Docker removes the container, and retries anything that remains. A service stop runs this slow Docker work away from the reconciliation loop, so one slow task does not block other service updates.
References: src/…/EcsContainerManager.java• L243-369 src/…/EcsContainerManager.java• L372-685 src/…/EcsContainerManager.java• L757-817 src/…/EcsContainerManager.java• L849-923 src/…/EcsService.java• L2382-2499 src/…/EcsTaskHandle.java• L27-160 src/…/FirelensConfigGenerator.java• L7-20 src/…/FirelensConfigGenerator.java• L57-235
Task networking
ECS keeps AWS task network state separate from Docker reachability. With awsvpc, Floci allocates a task ENI in the requested subnet and applies its security groups. The containers still use a local Docker network for peer traffic and access to Floci services.
The task keeps its ENI and attachment data in the API record after it stops, while the interface and firewall registration are released. Host port publishing is a local execution choice, so it does not change the task's AWS-shaped network record. For EC2 target groups, ECS also holds the host ports used by a task until the task fully stops.
This connects ECS placement to the VPC, subnet, ENI, and security-group model described in EC2 networking.
References: src/…/EcsService.java• L1632-1712 src/…/EcsContainerManager.java• L379-451 src/…/EcsLoadBalancerRegistrar.java• L273-365 src/…/EcsTask.java• L43-50
Task identity and access
ECS gives a live task metadata, temporary task-role credentials, and optional ECS Exec access. These paths connect an application inside Docker to the same AWS-shaped identity and control surfaces that a task would use in AWS.
The task-role path resolves the role in the task account, serves the AWS container-credentials response, rotates credentials before expiry, and revokes current and prior sessions when the task stops or launch fails. A Docker-side proxy exposes the link-local address expected by AWS SDKs and forwards requests to Floci. The credential session belongs to the exact task ARN, so it cannot remain valid after that workload ends or after Floci restarts.
ECS Exec requires a running task with execute-command enabled. It returns a short-lived, single-use session that opens a command stream into the selected Docker container. The session uses a WebSocket data channel and the Session Manager message format, then bridges input and output to Docker Exec. The task metadata endpoint also exposes task, container, and Docker stats views through the URI given to each container. The ExecuteCommandAgent appears as RUNNING only when ECS has enabled the task's exec path.
References: src/…/EcsService.java• L2680-2778 src/…/EcsContainerManager.java• L849-923 src/…/EcsTaskRoleCredentials.java• L55-164 src/…/EcsExecChannelHandler.java• L29-46 src/…/EcsResponseWriter.java• L521-573 src/…/EcsTask.java• L69-74
EKS cluster management
EKS models a managed Kubernetes control plane and the AWS resources around it. Cluster records retain identity, network settings, version, access mode, OIDC identity, logging, add-ons, and capacity records. Real execution adds a local Kubernetes control plane without replacing those API records.
Cluster lifecycle
Cluster creation validates the name, version, network, access mode, and caller options. EKS request bodies are checked against the operation's JSON shape before binding, so values with the wrong JSON type do not become misleading model values. Creation also validates EKS Auto Mode as one capability set: compute, block storage, and load balancing must be enabled or disabled together. Creation also creates the cluster security group for the selected VPC and removes that group if a later creation step fails.
A real cluster becomes active only after its local control plane is ready. A metadata-only cluster can become active without a Kubernetes API server when Docker execution is disabled or unavailable. The public endpoint serves outside clients. The internal endpoint serves readiness checks and local cluster connections.
The runtime creates the control plane with its selected Kubernetes image, node capacity, endpoint, identity hooks, logging, and registry settings. It then connects the cluster to the modeled VPC when route programming is enabled. ECR mirror setup is useful but does not prevent cluster startup if the local registry is unavailable. Cluster configuration updates record changes to endpoint access, logging, or authentication mode as EKS update records rather than silently changing unsupported settings.
Support policy also affects which explicitly requested versions can use standard support. Floci keeps the EKS release calendar in UTC and treats a version without an explicit request as eligible for standard support. A version past its calendar date requires extended support.
References: src/…/EksController.java• L87-105 src/…/EksController.java• L352-378 src/…/EksService.java• L739-936 src/…/EksService.java• L1044-1153 src/…/EksService.java• L1279-1285 src/…/EksClusterManager.java• L578-635 src/…/EksClusterManager.java• L683-724 src/…/EksClusterManager.java• L789-994 src/…/EksVersionCalendar.java• L8-32 src/…/BlockStorage.java• L1-9 src/…/ComputeConfig.java• L1-14 src/…/ElasticLoadBalancing.java• L1-9 src/…/StorageConfig.java• L1-9 src/…/UpdateClusterConfigRequest.java• L1-16
Cluster runtime
EksClusterManager maps each real cluster to one local Kubernetes control-plane container. A named Docker volume holds Kubernetes state so replacing the container does not discard the cluster.
Restore can adopt an owned surviving container and volume. If the container is missing, Floci starts a replacement against the retained data. A capacity, network, endpoint-certificate, or selected version change can replace the container while keeping the data volume. Readiness is checked again before the cluster reports an active runtime.
Cluster deletion removes the control-plane container, endpoint registration, port reservation, and runtime links. Persistent storage follows the configured storage policy, so a retained cluster can recover its workloads after a process restart. A Docker outage degrades the cluster to metadata-only state rather than removing its AWS-facing record. On restore, EKS adopts a surviving control-plane container when its identity still matches; otherwise it replaces the container on the same data volume and rechecks readiness.
References: src/…/EksClusterManager.java• L569-607 src/…/EksClusterManager.java• L672-974 src/…/EksClusterManager.java• L976-998 src/…/EksClusterManager.java• L1090-1198 src/…/EksClusterManager.java• L1201-1267 src/…/EksClusterManager.java• L1509-1524 src/…/EksService.java• L196-289
Node groups and capacity
An EKS node group is an API record for node capacity, launch data, scaling, and placement. In the local model, the first active node group selects the shared local node's instance type and resource budget. Later node groups remain AWS-shaped records and do not create separate local workers.
Node-group user data can apply bootstrap settings to the shared cluster runtime. Concurrent groups share one execution claim, so one bootstrap payload initializes the local node. A failed bootstrap remains visible as a failed node group and can be retried. The node group record also carries the management data that clients expect, including scaling, launch-template, health, labels, taints, and Auto Scaling relationships.
The selected node type and configured ceilings shape the control-plane container's CPU and memory limits. A change to the first node group's capacity can replace the control-plane container and then re-check cluster readiness.
Node groups also expose an AMI release view. A caller-provided release or launch-template image takes priority. Otherwise the service derives a release from the recommended EKS-optimized AMI for the Kubernetes version and AMI type, while the local node runtime resolves the matching image ID from the EC2 image catalog. This keeps the release label and the image used by the emulated node aligned.
References: src/…/EksService.java• L380-404 src/…/EksService.java• L1650-1727 src/…/EksClusterManager.java• L849-917 src/…/EksClusterManager.java• L3327-3369 src/…/EksAmiReleaseVersions.java• L13-68
EKS resource records
Node groups, Fargate profiles, access entries, add-ons, and pod identity associations provide the AWS lifecycle and validation surfaces around a cluster. They do not imply a matching local fleet of AWS workers. The EKS JSON controller exposes these resources through cluster-scoped REST paths and keeps operations behind the cluster's region and lifecycle checks. Auto Mode request data describes compute pools, node roles, block storage, and load balancing as one cluster capability set even when the local runtime does not create a separate managed fleet.
Add-ons use a catalog of supported versions. The service selects a compatible default when the request omits a version, validates requested versions, records updates, and can create linked pod identity associations. Cluster deletion removes cluster-scoped add-ons, update records, access records, identity state, and runtime resources as part of the cluster lifecycle.
References: src/…/EksController.java• L156-224 src/…/EksController.java• L236-368 src/…/EksAddonService.java• L96-170 src/…/EksAddonService.java• L219-376 src/…/EksStoredResourceArns.java• L41-77 src/…/ComputeConfig.java• L8-14 src/…/StorageConfig.java• L6-9
EKS API access
EKS access entries connect an IAM principal to Kubernetes authorization metadata for a cluster. They are available only when the cluster uses API or API-and-config-map authentication and is active. EKS also resolves the ARNs of cluster resources for IAM and tag operations, so a resource's account and Region remain part of its identity outside the cluster API.
An entry can represent a standard user or role, or an EC2 Linux node role. Standard entries can carry cluster-wide or namespace-scoped access policies. The service validates the principal against IAM, keeps policy associations with the entry, supports safe retry through client request tokens, and removes entries with the cluster.
Kubernetes clients can also present a short-lived k8s-aws-v1 bearer token. Floci checks its encoded request shape, SigV4 signature, IAM key, cluster name, and time window before the token reaches Kubernetes authorization. A verified EC2 worker session receives a node identity only when its cluster, account, region, creation time, IAM role, instance profile, running instance, and worker access entry all match.
References: src/…/EksController.java• L241-305 src/…/EksService.java• L900-952 src/…/EksStoredResourceArns.java• L41-77
EKS identity
EKS OIDC identity provides a trust path for service-account tokens. Each cluster keeps an AWS-shaped issuer and signing material so projected tokens remain tied to the same cluster across restart. Floci exposes discovery and key views for tools that inspect or verify the issuer.
Pod Identity connects a Kubernetes namespace and service account to an IAM role. An association is active only for an active cluster, and its role must exist in IAM. The association keeps its own ARN, tags, request token, and update state so clients can create, retry, list, update, tag, and delete it as a cluster resource. When a pod is admitted, the pod identity webhook checks that the pod identity agent add-on is installed and that an association matches the pod's namespace and service account. It then adds a projected service-account token, a read-only token mount, and container-credentials settings. The webhook also adds Floci endpoint settings when pods can reach that endpoint, without replacing values already set by the workload.
The mutation prepares the pod to use the credentials path. It does not itself issue credentials; the pod identity relay and association services provide that later step. The webhook fails open with an unchanged pod when the cluster, add-on, association, request, or internal path cannot support a mutation.
This diagram shows the admission path that prepares a pod for temporary role credentials.
sequenceDiagram
participant PodCreate as Pod create
participant Webhook as Pod identity webhook
participant EKS as EKS records
participant Kubelet as Kubernetes runtime
PodCreate->>Webhook: Send AdmissionReview
Webhook->>EKS: Check active cluster, addon, and association
EKS-->>Webhook: Return match or no match
Webhook-->>PodCreate: Return unchanged pod or JSON patch
PodCreate->>Kubelet: Admit patched pod
Kubelet->>PodCreate: Mount projected token and env settings
References: src/…/EksPodIdentityAssociationService.java• L33-64 src/…/EksPodIdentityAssociationService.java• L66-154 src/…/EksPodIdentityAssociationService.java• L167-237 src/…/EksPodIdentityWebhook.java• L22-39 src/…/EksPodIdentityWebhook.java• L121-149 src/…/EksPodIdentityWebhook.java• L187-297 src/…/EksController.java• L436-485
Shared Docker-backed concerns
ECS task containers and EKS control-plane containers run as managed Docker resources beside Floci. The shared orchestration contract therefore covers reachability, image access, persistent storage, cleanup, and ownership.
Network reachability
ECS containers use Docker-aware host resolution to reach Floci's emulated AWS endpoints. EKS uses separate public and internal endpoints and can install metadata, token, or identity relays inside the cluster container.
EKS also maps eligible VPC routes into the cluster runtime. Link-local traffic for metadata and Pod Identity is forwarded with node NAT rules. Pod traffic is accepted only when the cluster is configured to route its pod CIDR, while node-local traffic uses the node's own output path. Route changes can refresh active clusters, while account and VPC checks stop one cluster from programming another cluster's routes. This joins Kubernetes traffic to the VPC, subnet, route-table, and gateway model described in EC2 networking.
References: src/…/EcsContainerManager.java• L422-451 src/…/EksClusterManager.java• L465-498 src/…/EksClusterManager.java• L1407-1433 src/…/EksPodNetworkRouting.java• L34-157
Images and registries
Both orchestration paths turn local registry settings into runtime image access. ECS resolves and pulls every task image before container creation and uses the task runtime platform for that pull. EKS selects a Kubernetes image and can configure a local image mirror for the cluster's emulated ECR endpoints while public registries remain outside that mirror.
An image or registry failure must stop the owning launch and remove its partial resources. EKS treats an unavailable optional ECR mirror as a degraded feature rather than a failed cluster, while a missing control-plane image still prevents real execution. Node-group image selection also falls back to the catalog's local EKS image when no launch-template image is supplied.
References: src/…/EcsContainerManager.java• L304-347 src/…/EksClusterManager.java• L720-750 src/…/EksClusterManager.java• L3337-3365 src/…/EksClusterManager.java• L923-925
Storage and cleanup
ECS uses task containers with task-scoped networks and volumes. EKS uses a named volume for Kubernetes state and keeps a stable VPC address lease for a cluster node when the cluster has VPC settings. Stop and delete paths release the runtime resources at the matching lifecycle point while retaining the API history that clients expect. EFS-backed ECS mounts and EKS cluster storage therefore follow different ownership rules, as described with the broader storage services in databases and cache.
ECS retains a runtime handle while teardown is incomplete. Startup cleanup removes only owned containers and task volumes from an earlier run before replacement tasks start. EKS keeps cluster data when it replaces a control-plane container. Ownership labels protect resources that belong to another Floci process.
References: src/…/EcsService.java• L359-389 src/…/EcsService.java• L505-553 src/…/EcsTaskHandle.java• L27-160 src/…/EksClusterManager.java• L286-360 src/…/EksClusterManager.java• L789-908 src/…/EksClusterManager.java• L1509-1524
Account and resource identity
Account identity separates same-named ECS and EKS resources that share one Docker daemon. Durable records, task reconciliation, Docker names, network routes, credentials, and cleanup all keep the creating account in their ownership boundary.
EKS cluster names are unique within an account and Region. Region-qualified storage and Docker identities prevent a same-named cluster from taking another cluster's container, volume, route, or identity data. The cluster API response removes local identity fields so they remain runtime concerns rather than AWS-facing data.
References: src/…/EksService.java• L621-701 src/…/EksService.java• L729-783 src/…/EksController.java• L126-148
Change checklist
When these files or sections are changed, remember to consider these:
- If task-definition fields change, keep request parsing, registration validation, task responses, task launch inputs, runtime-platform selection, and Docker behavior aligned.
- If ECS task launch changes, keep ENI setup, credentials, image resolution, secrets, dependencies, logs, FireLens configuration, partial-launch cleanup, stopped-task reporting, and managed-agent status aligned.
- If task stop behavior changes, preserve exit data, task volumes, ENI release, credential revocation, target deregistration, service discovery cleanup, retry state, target draining, and final task state.
- If service deployment fields change, keep immutable revision snapshots, task ownership, steady-state checks, protected-task handling, target health, target registration, Cloud Map registration, Service Connect endpoint resources, rollback, and deployment events aligned.
- If ECS response shapes change, keep include-gated fields, task overrides, capacity-provider output, container-instance health, task-set data, and raw pass-through fields aligned with request behavior.
- If task metadata, stats, credentials, or ECS Exec changes, keep the container-injected endpoint, Docker reachability, task status gates, stats sampling, credential ownership, and single-use session rules aligned.
- If EKS request or response shapes change, keep operation-specific JSON type checks, REST paths, wire field names, Auto Mode capability groups, update records, local-field filtering, and resource-region lookup aligned.
- If EKS version support or node-group AMI behavior changes, keep the support calendar, explicit-version rules, release-version label, recommended image lookup, launch-template precedence, and local node image selection aligned.
- If EKS cluster startup changes, keep public and internal endpoints, readiness, data-volume reuse, stable VPC address leases, image selection, node capacity, account and Region restoration, and restore adoption aligned.
- If EKS add-on, access-entry, or pod-identity routes change, preserve the cluster path contracts and keep controller response keys aligned with the service records.
- If pod identity associations or admission changes, keep association ARN and tag lookup, add-on gating, namespace and service-account lookup, token projection, endpoint injection, workload-supplied environment precedence, link-local routing, and fail-open behavior aligned.
- If VPC route programming changes, keep pod CIDR selection, link-local forwarding, subnet route-table selection, account-scoped target lookup, gateway reachability, route replacement, and route removal aligned.
- If Docker names or cleanup labels change, preserve account ownership, Region ownership, run ownership, and cross-process isolation for both ECS and EKS.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Docker is unavailable in real ECS mode | A task stops without live containers | Use metadata-only mode or provide a reachable Docker daemon |
| Docker is unavailable in real EKS mode | A cluster can be active without a Kubernetes API server | Do not expect Kubernetes workload access from metadata-only state |
| A task image, secret, parameter, or FireLens config cannot be resolved | The task stops during initialization | Resolve launch inputs before container creation and revoke issued credentials |
| A partial task launch leaves Docker resources | API and runtime state diverge | Retain the launch handle and retry container, log, volume, and network cleanup |
| A task dependency is missing, cyclic, or never reaches its condition | Dependent containers do not start | Validate the graph and use bounded waits |
| A task definition names an unsupported runtime platform | Registration or container startup cannot honor the requested image platform | Validate the platform and resolve images for the selected architecture |
| A service target or Cloud Map registration is not recorded | A stopped task can leave traffic or discovery pointed at a reused address | Persist planned registrations before the external call and release recorded entries |
| A Service Connect discovery name is repeated or already used in its namespace | The service update is refused or can leave endpoint resources out of sync | Validate names under the namespace lock and create or delete only resources owned by the ECS service |
| A target is unhealthy during a rolling deployment | The replacement cannot complete steady state | Wait for every recorded target to report healthy before draining the old task |
| An ECS service launch fails or its task stops before it runs | A stability wait ends with NotStabilized instead of waiting for the desired count | Surface the recorded launch or task failure to the stability check |
| An EKS request member has the wrong JSON type | The operation can be rejected before it changes cluster state | Check the operation body against its EKS request shape before binding |
| An explicitly requested EKS version is outside standard support while the policy is STANDARD | Cluster creation or support-policy update is rejected | Use a version in the UTC support calendar or select extended support |
| EKS Auto Mode enables compute, block storage, and load balancing inconsistently | Cluster creation is rejected instead of recording a partial capability set | Validate the three capability switches as one group and require node pools with a node role |
| An EKS configuration update names unsupported members or more than one update family | The update is rejected before cluster state changes | Accept only endpoint access, logging, or authentication-mode updates and keep client-token retries stable |
| EKS becomes active before the control plane is ready | Kubernetes clients receive an unusable endpoint | Poll internal readiness before reporting an active runtime |
| An EKS image cannot be pulled or its container cannot start | The cluster stays in creation or fails to provide a Kubernetes API | Keep the cluster record until the runtime can be retried and remove failed containers |
| A recommended AMI is missing for a node-group version and type | The node group uses the local fallback image and may not match an expected catalog release | Resolve the catalog image when available and keep the release label and image-ID paths consistent |
| A retained EKS container uses different capacity, network, endpoint host, or pinned version | The restored cluster can expose stale limits, an invalid certificate, or the wrong Kubernetes version | Compare runtime identity with current settings and replace the container on mismatch |
| A pod identity request has no installed agent or matching association | The pod is admitted without the identity mutation | Install eks-pod-identity-agent and create an association for the namespace and service account |
| A pod identity association names a missing IAM role or an inactive cluster | The association is rejected and no credential path is prepared | Create it only for an active cluster and validate the role in the ARN's account |
| A pod identity token or IAM role is invalid | Temporary pod credentials are not issued | Use a valid token and active role association |
| Pod link-local routing cannot resolve or reach Floci | Pods cannot obtain metadata or Pod Identity credentials | Keep the Floci endpoint reachable from the node and validate the pod CIDR and routing rules |
| A VPC route target has no reachable instance or ENI gateway | Cluster traffic cannot follow that route | Keep the target attached and resolvable in the cluster account |
| Cluster deletion cannot remove its runtime or security group | Cluster state remains for a safe retry | Keep deletion state until resource removal succeeds |
Key files
| File | Why to read it |
|---|---|
| src/…/EcsJsonHandler.java | Shows the ECS action surface and how task, service, network, and task-definition requests enter the service |
| src/…/EcsService.java | Defines ECS cluster state, placement, service reconciliation, deployment, task lifecycle, stability, and steady state |
| src/…/EcsResponseWriter.java | Shows how ECS records become AWS-shaped cluster, task-definition, task, service, and container responses |
| src/…/TaskDefinition.java | Defines the versioned launch contract used by tasks and services |
| src/…/EcsTask.java | Shows the durable task view kept apart from local container handles and the task lifecycle fields |
| src/…/EcsContainerManager.java | Shows how task definitions become Docker-backed containers, networks, logs, volumes, and identity paths |
| src/…/EcsTaskHandle.java | Shows the runtime ownership and retry state kept while task teardown completes |
| src/…/EcsTaskRoleCredentials.java | Shows task-owned credential sessions, rotation, and revocation |
| src/…/FirelensConfigGenerator.java | Shows the task-local log routing model for Fluent Bit and Fluentd |
| src/…/EcsLoadBalancerRegistrar.java | Shows how running task bindings become load-balancer targets and how ownership controls release |
| src/…/EcsServiceDiscoveryRegistrar.java | Shows how running tasks become Cloud Map instances and how stale registrations are removed |
| src/…/ServiceConnectServiceResource.java | Defines the deployment record for a Service Connect Cloud Map endpoint |
| src/…/EcsExecChannelHandler.java | Shows the one-use ECS Exec data channel between WebSocket clients and Docker Exec |
| src/…/EksController.java | Shows the REST-JSON EKS surface and cluster-scoped resource paths |
| src/…/EksService.java | Defines EKS cluster validation, support policy, persistence, security-group lifecycle, capacity, restore, and deletion |
| src/…/EksClusterManager.java | Connects EKS clusters to the local Kubernetes runtime, Docker storage, endpoints, identity relays, images, and VPC routes |
| src/…/EksAmiReleaseVersions.java | Defines the shared mapping from EKS versions and AMI types to recommended AMI releases and image records |
| src/…/EksVersionCalendar.java | Defines the UTC dates used to decide standard support for explicit Kubernetes versions |
| src/…/EksAddonService.java | Defines add-on version selection, updates, pod identity links, and cluster cleanup |
| src/…/EksPodIdentityAssociationService.java | Shows the durable Pod Identity association contract and IAM role checks |
| src/…/EksPodIdentityWebhook.java | Shows how matching Kubernetes pods receive projected identity-token and endpoint settings |
| src/…/EksPodNetworkRouting.java | Shows how pod link-local traffic reaches metadata and Pod Identity endpoints |
| src/…/EksStoredResourceArns.java | Shows how EKS resources are found by ARN for IAM and tag operations |
| src/…/UpdateClusterConfigRequest.java | Defines the EKS cluster configuration update families supported by the API |
| src/…/ComputeConfig.java | Defines the Auto Mode compute capability record |
| src/…/StorageConfig.java | Defines the Auto Mode storage capability record |
| docs/svc-ec2-networking.md | Explains the VPC, subnet, ENI, security-group, and route model used by orchestration |
| docs/svc-databases-and-cache.md | Explains the related persistent storage services used by container workloads |
| docs/svc-cloudformation.md | Explains the resource lifecycle that waits for ECS service steady state |