EKS Samples / Kubernetes

Kubernetes Samples

Manifests for real-world EKS workloads spanning storage, networking, security, observability, and disaster recovery. Apply directly to any EKS cluster.

EBS CSI Driver NFS CSI Driver IRSA Fluent Bit OpenSearch NetworkPolicy VolumeSnapshot Topology Hints vLLM Graviton5
11 Examples

Backup & Restore EBS PVC

01

Create an EBS volume snapshot from a running pod's PVC, restore it to a new PVC, and dynamically resize the restored volume — all without downtime.

EBS CSI Driver VolumeSnapshot external-snapshotter StorageClass
View sample

Cross-Account Disaster Recovery

02

Snapshot an EBS PVC in one AWS account's EKS cluster and restore it as a statically provisioned PV in a second account. Covers KMS key sharing for encrypted volumes.

EBS CSI Driver AWS KMS EC2 Snapshot Sharing Multi-Account
View sample

Proxy Protocol on Classic Load Balancer

03

Enable Proxy Protocol v2 on a Classic Load Balancer fronting an NGINX Ingress Controller so that real client IP addresses are visible inside pods.

NGINX Ingress AWS CLB / ELB Proxy Protocol aws-cli
View sample

Fargate Logging to OpenSearch

04

Configure Fluent Bit on an EKS Fargate cluster to ship container logs to an AWS OpenSearch domain (VPC or public), covering OpenSearch versions 1.3 and 2.3.

EKS Fargate Fluent Bit AWS OpenSearch IAM
View sample

AWS Python SDK in Containers (IRSA)

05

Deploy a pod running a Python AWS SDK container authenticated via IRSA (IAM Roles for Service Accounts using OIDC web identity). The canonical pattern for secure SDK access in EKS.

IRSA OIDC IAM boto3
View sample

NFS CSI Driver with EFS

06

Install the Kubernetes NFS CSI driver on EKS backed by Amazon EFS, bypassing the 1,000 access-point limit of the EFS CSI driver. Uses subdirectory-based dynamic provisioning.

NFS CSI Driver Amazon EFS Dynamic Provisioning EC2 Security Groups
View sample

Snapshot, Restore & Resize StatefulSet PVCs

07

Create EBS volume snapshots for each PVC of a Cassandra StatefulSet, delete and restore the StatefulSet from snapshots, then dynamically resize the restored PVCs.

EBS CSI Driver VolumeSnapshot StatefulSet Cassandra
View sample

Topology Aware Routing

08

Use Kubernetes Topology Aware Hints to keep in-zone traffic local, reducing inter-AZ data transfer costs and latency. Covers caveats with HPA, Cluster Autoscaler, and Spot instances.

Topology Hints EndpointSlice kube-proxy Multi-AZ
View sample

Troubleshoot Intermittent Network Issues

09

Deploy a tcpdump DaemonSet that continuously captures node-level packet data and streams .pcap files to S3 — for post-incident analysis of connectivity problems.

tcpdump DaemonSet Amazon S3 IRSA CloudWatch
View sample

Network Policies (VPC CNI)

10

Reusable NetworkPolicy building blocks — allow-all-egress, allow-all-ingress, and default-deny — for controlling pod-to-pod traffic with the Amazon VPC CNI plugin.

NetworkPolicy Amazon VPC CNI Pod Security
View sample

LLM Serving with vLLM on Graviton5

11

Serve an LLM with the vLLM Arm64 CPU Deep Learning Container on EKS Auto Mode, scheduled onto Graviton5 (m9g) nodes by a custom Karpenter NodePool. Token-gated, ClusterIP-only, with an On-Demand vs Spot cost comparison.

vLLM Graviton5 EKS Auto Mode Karpenter LLM Inference
View sample