EKS identity network and storage
Two directions of identity
A human or CI principal accessing the Kubernetes API is a different identity problem from a Pod calling S3. EKS access entries can associate IAM principals with cluster access, subject to the authentication mode and configured authorization. Kubernetes RBAC and EKS access policies can grant API permissions; AWS IAM governs AWS service API access. A successful AWS login alone is not permission to list Secrets or modify Deployments. Design the smallest grant for each identity.
reviewer IAM role -> EKS authentication -> namespace read permissionbookstore ServiceAccount -> workload IAM role -> approved object readWorkload IAM: Pod Identity versus IRSA
EKS Pod Identity associates a namespace and ServiceAccount with an IAM role, using the supported EKS credential delivery mechanism and compatible SDK. For conventional EC2 nodes, verify the Pod Identity Agent; Auto Mode integrates this capability. EKS Pod Identity is not supported on Fargate. IRSA (IAM roles for service accounts) instead relies on an IAM OIDC provider, a matching role trust policy and projected service-account credentials. Do not copy long-lived AWS keys into a Secret or assume node credentials are automatically inaccessible. Review the SDK credential chain and metadata access restrictions. The example is a Kubernetes object only; the fictional role does not exist.
apiVersion: v1kind: ServiceAccountmetadata: name: catalog-reader namespace: bookstore-lab annotations: eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/fictional-catalog-readerPlan subnet capacity and security boundaries
With the usual IPv4 VPC CNI configuration, Pods consume addresses from the VPC network through node interfaces. Warm pools and prefix delegation affect allocated capacity, so counting only Running Pods can underestimate subnet usage. A prefix requires suitable contiguous space. In our deliberately simplified worksheet, 40 free addresses minus a 10-address safety margin leaves 30 for a projected 24 additional allocations. Actual ENI limits, subnet fragmentation, AZ placement, node maximum Pods and existing reservations must be checked separately. Security groups, NetworkPolicy and IAM are separate controls; verify the selected CNI enforcement behavior.
free IPv4 slots 40 - reserve 10 = 30 planning slotsprojected 24 additional allocations -> 6 slots remain above reserveStorage and traffic integration
Choose EBS for a compatible zonal block-volume workload and EFS when shared file access is needed and the application can use it. Standard EBS CSI uses ebs.csi.aws.com; EKS Auto Mode uses ebs.csi.eks.amazonaws.com and manages volumes separately. EFS has distinct mount-target, network and permissions requirements; Fargate supports statically provisioned EFS volumes rather than dynamic provisioning. Use delayed binding for topology-dependent block storage and plan data migration rather than changing a provisioner name on existing data. The following class is a static illustration, not a command to apply.
apiVersion: storage.k8s.io/v1kind: StorageClassmetadata: name: lab-auto-blockprovisioner: ebs.csi.eks.amazonaws.comparameters: type: gp3 encrypted: "true"volumeBindingMode: WaitForFirstConsumerreclaimPolicy: RetainTrace an end-to-end request
A Service of type LoadBalancer or an Ingress can cause an installed compatible controller to create AWS load balancing resources. Auto Mode has its own integration; ordinary controller features and annotations are version dependent. Use ClusterIP for the offline example. Before any real listener, review internal versus public scope, target health, security groups, certificates and charges. Diagnose network access separately from an IAM AccessDenied response. Check Service selectors and EndpointSlices before changing the load balancer.
client -> approved internal listener -> healthy target -> Service/Pod path (depends on target type)Pod -> AWS service endpoint -> IAM authorization -> responsePractice and next steps
Review network-cases.json and identity-cases.json. Calculate subnet headroom and choose an identity mechanism for each fixture. Explain one missing real-world check. Run python validate_offline.py from lab-fixtures/amazon-eks/ in the extracted package. The validator reads only local fixture files. Next: EKS lifecycle and cost plan.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
EKS identity network and storage — knowledge check
Map required integrations and constraints
Which mechanism is for a Pod calling AWS APIs?
Which requirement applies to IRSA?
40 free addresses, reserve 10, projected 24. How many remain above reserve?
Which provisioner belongs to EKS Auto Mode EBS?
Does Fargate support EKS Pod Identity?