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.
More on EKS in Production
Managed node groups, self-managed nodes, Fargate, Karpenter or Auto Mode: how do you choose?IntermediateHow do you design Karpenter NodePools for production?AdvancedIRSA or EKS Pod Identity for new clusters?IntermediateHow do you manage who can access the EKS API?IntermediateHow do you run EKS version upgrades safely?AdvancedWhat happens if you stay on an old EKS version?Beginner