Interview Prep/AWS/EKS in Production

How do you run stateful workloads on EKS?

AdvancedProductionEKS in Production
Answer

Prefer managed services (RDS, ElastiCache, MSK, OpenSearch) for data. When you must run state in the cluster: EBS CSI driver with gp3 storage classes (WaitForFirstConsumer, allowVolumeExpansion: true), StatefulSets with one replica per AZ, PDBs with maxUnavailable: 1, volume snapshots via the snapshot controller, and EFS CSI for shared ReadWriteMany data. Exclude these nodes from aggressive consolidation (karpenter.sh/do-not-disrupt: "true" on pods) and test node replacement.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on EKS in Production