Workload identity, CNI and storage
Two authorization boundaries
EKS applications often need two different permissions: Kubernetes API access (for example reading objects in a namespace) and AWS API access (for example reading a particular S3 object). Human and automation identities can enter a cluster through EKS access entries and applicable Kubernetes authorization. Kubernetes RBAC grants verbs on Kubernetes resources, not S3 access. A Kubernetes service account is the workload identity inside the cluster; connect it to a narrowly scoped IAM role for AWS requests. Network reachability is separate from both.
Pod Identity versus IRSA
EKS Pod Identity associates a role with a service account in a specific cluster and namespace. Supported SDKs obtain temporary credentials through the default credential chain and the agent (integrated in Auto Mode; otherwise configure it on supported nodes). IRSA uses an IAM OIDC provider and a projected service account token to exchange for temporary role credentials. Pod Identity does not support Fargate Pods; use IRSA where supported for these workloads. The Fargate Pod execution role is for infrastructure operations, not the application role. Restrict node metadata access and avoid static keys or broad node permissions. Review trust, role scope and SDK support before deployment.
Follow traffic and IP capacity
With the Amazon VPC CNI, Pods on applicable EC2 nodes use VPC addresses; plan subnet capacity for nodes, Pods and networking overhead. Auto Mode manages its integrated networking. In a simple design, client traffic enters an approved ALB for HTTP or NLB for TCP/UDP, reaches a Service or registered Pod targets according to controller configuration, then reaches ready Pods. Creating a LoadBalancer Service can allocate billable cloud resources. A ClusterIP Service alone is not public ingress. Apply security groups, Kubernetes NetworkPolicy with supported enforcement, and app authorization; none is a substitute for the others.
Storage is a separate lifecycle
A PersistentVolumeClaim (PVC) asks for storage; a StorageClass defines provisioning behavior; a CSI driver connects Kubernetes with a storage provider. EBS provides block storage with AZ placement constraints; EFS supports shared file access for suitable workloads. Standard EBS CSI volumes cannot be mounted on Fargate Pods; EFS support has its own provisioning restrictions. Auto Mode uses its own EBS provisioner, distinct from the standard CSI driver. Check storage class, reclaim policy, encryption and backup before deleting a PVC. A retained volume may keep costing money.
Practice: diagnose a denied read
The catalog Pod can resolve S3 DNS and connect over HTTPS but receives AccessDenied. Inspect the workload service account, identity association or IRSA trust, requested action and resource scope; do not make a bucket public. If the Pod is Pending instead, inspect scheduling events and available IPs and capacity. These are different hypotheses, not guaranteed root causes. The offline lab uses fictional identities and cannot validate IAM or CNI behavior.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Workload identity, CNI and storage — knowledge check
Apply the lesson to offline EKS scenarios.
A Pod needs to read one S3 prefix. Which permission boundary grants that action?
Which identity mechanism is appropriate to evaluate for a Fargate Pod accessing AWS APIs?
With VPC CNI, what can prevent more Pods despite spare CPU?
Which object requests persistent Kubernetes storage?
A Pod connects to S3 over HTTPS but gets AccessDenied. What should you review first?