EKS identity, networking and compute

Advanced · 23 min

What AWS adds around Kubernetes: access entries, EKS Pod Identity and IRSA, the VPC CNI and pod IP limits, compute options and version support.

Before thisIAM users, groups, roles and policiesAssuming roles with STSWorkload identity for EC2, Lambda and CIVPCs, subnets and address planningECR image registry

AWS Events · 28 min · from 4:55

EKS identity, networking and compute

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by AWS EventsReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • EKS runs the Kubernetes control plane. The work that is specific to AWS is joining it to IAM, to your VPC and to compute.
  • Access entries map IAM principals to Kubernetes permissions through the EKS API. They replace editing the aws-auth ConfigMap.
  • Give pods AWS permissions with EKS Pod Identity, or IRSA where Pod Identity is not available, such as on Fargate. Do not rely on the node role.
  • With the VPC CNI every pod gets a VPC address, so subnet size and network interface limits cap how many pods you can run.
  • Nodes can be managed node groups, Auto Mode, self-managed, Fargate or hybrid, and a cluster can mix them.
  • A Kubernetes version gets 14 months of standard support and 12 of paid extended support, after which the cluster is upgraded for you.

What AWS adds

Kubernetes itself is covered in its own roadmap. Amazon EKS runs the control plane for you: API servers and etcd spread over Availability Zones, patched and backed up. What’s left are three seams where Kubernetes meets AWS. Who may talk to the cluster and what pods may do in AWS (identity), how pods get addresses (networking), and what machines they run on (compute).

Identity in two directions

People and pipelines into the cluster. You authenticate to the API server with IAM. Kubernetes then needs to know what that IAM principal may do. Access entries are the current answer: you manage them through the EKS API, outside the cluster.

aws eks create-access-entry --cluster-name shop \
  --principal-arn arn:aws:iam::123456789012:role/dev
aws eks associate-access-policy --cluster-name shop \
  --principal-arn arn:aws:iam::123456789012:role/dev \
  --policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy \
  --access-scope type=namespace,namespaces=shop

An entry takes AWS-maintained access policies, or Kubernetes groups that your own RBAC rules bind. The older method was a ConfigMap called aws-auth, where a typo could lock everyone out. Each cluster has an authentication mode that says which methods it accepts; when you move off the ConfigMap, its custom entries are not copied for you.

Pods out to AWS. A pod that calls S3 needs temporary credentials. Two mechanisms:

  • EKS Pod Identity: run the agent add-on (built in with Auto Mode), then create an association of IAM role, namespace and ServiceAccount. The role trusts pods.eks.amazonaws.com, so the same role works across clusters. The SDK fetches credentials from the agent on the node.
  • IRSA (IAM roles for service accounts): the cluster acts as an OIDC identity provider and the role’s trust policy names the ServiceAccount. More setup, but it works where Pod Identity doesn’t, including Fargate and Windows pods.

The node’s own role should hold only what nodes need, or every pod inherits whatever you put there.

Networking: pods are VPC citizens

EKS’s default VPC CNI gives each pod a real address from your VPC. Load balancers, flow logs and other services see pods directly, with no overlay. The price is that pods consume addresses, and each EC2 instance type holds only so many network interfaces and addresses per interface.

The default pod limit for a node is ENIs x (IPs per ENI - 1) + 2. An m5.large supports 3 interfaces with 10 IPv4 addresses each, so 3 x 9 + 2 = 29 pods, however small they are.

Prefix delegation assigns blocks of addresses to each interface slot and raises the per-node ceiling. For exhausted VPCs, custom networking places pods in a secondary CIDR, and IPv6 clusters remove the shortage altogether. Plan subnet size before the cluster, not after.

Also decide who can reach the API server. New clusters have a public endpoint by default, protected by IAM and RBAC. Enable the private endpoint and restrict or disable the public one for production.

Compute

Option You manage Note
Managed node groups node group settings, when to update AMIs EC2 in an Auto Scaling group
Auto Mode workloads and NodePools AWS runs autoscaling, networking, load balancing, storage; nodes live at most 21 days
Self-managed nodes everything on the host most control
Fargate nothing on the host no DaemonSets, GPUs, privileged pods or EBS; private subnets only
Hybrid Nodes your own on-premises machines joined to the cluster

A cluster can mix these. Auto Mode is built on the ideas behind Karpenter. Set PodDisruptionBudgets whichever you choose, because nodes will be replaced.

Versions

EKS supports a Kubernetes minor version for 14 months in standard support, then 12 months in extended support at a higher price per cluster hour. Extended support is on by default, so forgetting to upgrade shows up on the bill first. At the end of it, AWS upgrades the cluster. In November 2026 standard support covers 1.34 to 1.37. Upgrading itself works much as elsewhere, and AWS allows rolling a cluster back one minor version within 7 days.

About the video

The embed is a clip (4:55 to 32:26) of AWS re:Invent 2024’s “Securing Kubernetes workloads in Amazon EKS”. Its chapters in that range are cluster access management, application access security and infrastructure security. It is the identity half of this lesson; I can’t say from the chapters how much it covers the VPC CNI or compute choices, so the two links in deeper cover those. I judged it from chapters and description only, since transcripts couldn’t be fetched. English was judged from its English caption track and title.

What was run: no cluster. The access entry commands are taken from the docs; the local CLI accepted their parameters, but the emulator has no implementation of those calls. The pod limit is my arithmetic from the documented formula and m5.large interface limits. The rest is from the AWS docs, checked 2026-11-29.

Where this fits

Containers are covered. The next group defines all of this as code, starting with CloudFormation.

Check yourself

  1. 01A developer's IAM role has AdministratorAccess but kubectl returns Forbidden. How can that be?

    IAM permission to manage the EKS cluster is not permission inside Kubernetes. The role needs an access entry with an access policy or with Kubernetes groups bound by RBAC (or a legacy aws-auth mapping).

  2. 02Pods stay Pending with an IP assignment error while nodes have spare CPU. What are the two likely limits?

    The subnet has run out of free addresses, or the node has reached the number of addresses its network interfaces can hold. Prefix delegation raises the per-node limit; bigger or additional subnets fix the first.

  3. 03Why is attaching an S3 write policy to the node role a poor way to let one application write to S3?

    Every pod on that node that can reach instance credentials gets the same permission. A role tied to the application's ServiceAccount through Pod Identity or IRSA limits it to that workload.

  4. 04You want Pod Identity for a workload that runs on Fargate. What do you do?

    Use IRSA instead. Pod Identity needs its agent on Linux EC2 nodes and is not supported for Fargate pods.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark