Перейти к содержимому

Day 44: MASTER StatefulSets in Kubernetes | Real-World Multi-AZ Amazon EKS Demo | CKA Course 2025

Cloud With VarJosh

0:00 / 0:00

Day 44: MASTER StatefulSets in Kubernetes | Real-World Multi-AZ Amazon EKS Demo | CKA Course 2025

3 367 просмотров · 1 год назад
Cloud With VarJosh
15,2 тыс. подписчиков
3 367 просмотров · 1 год назад
Day 44: MASTER StatefulSets in Kubernetes | Real-World Multi-AZ Amazon EKS Demo | CKA Course 2025 👉 GitHub Repository: https://github.com/CloudWithVarJosh/C... 👉 CKA 2025 Playlist:    • CKA Certification Course 2025   📚 Welcome to Day 44! In this lecture, we take a deep dive into StatefulSets — Kubernetes' powerful workload controller built specifically for managing stateful applications like MySQL, Kafka, and Elasticsearch. You’ll learn why stateless patterns don’t work for databases, what challenges arise in running distributed stateful workloads on Kubernetes, and how StatefulSets solve them using predictable naming, stable DNS, persistent volumes, and ordered scaling. Through two real-world demos running on Amazon EKS across multiple availability zones, we’ll show you how StatefulSets handle zone failures, pod rescheduling, and volume reattachment with zero data loss. 📝 What We’ll Cover: ✅ Stateless vs Stateful — what’s the difference and why it matters ✅ Key challenges when deploying databases on Kubernetes ✅ What StatefulSets bring to the table: naming, DNS, volume, and sequencing guarantees ✅ Demo 1: Deploy MySQL with StatefulSet in a multi-AZ EKS setup ✅ Chaos Engineering: Terminate nodes, simulate pod rescheduling, and verify data persistence ✅ How Headless Services give each pod a stable, DNS-resolvable identity ✅ Use pod affinity and anti-affinity for zone-aware scheduling ✅ DevOps vs DBA responsibilities in Kubernetes-based DB deployments ✅ When and why to use Kubernetes Operators for DBs ✅ Best practices for volumeClaimTemplates, ReadWriteOncePod access mode, and PVC cleanup ✅ DNS patterns and CoreDNS behavior with StatefulSets 💡 By the end of this lecture: You’ll understand when to use StatefulSets, how they differ from Deployments, and how to build resilient, production-grade stateful workloads on Kubernetes. You'll also be ready to simulate failures and verify data durability under chaos. 🔗 Stay Connected: 👉 LinkedIn:   / varun-joshi-2b516752   👉 GitHub: https://github.com/CloudWithVarJosh 💬 Got questions? Drop them in the comments — I reply to every single one. 👍 Like, share, and subscribe to follow the entire CKA 2025 series! ⏰ Timestamps 00:00:00 — Introduction 00:01:20 — Stateless vs Stateful Applications 00:21:12 — What It Takes to Run a Database 00:30:48 — The Need for StatefulSets: What Are We Solving? 00:40:12 — What Are StatefulSets? 00:42:58 — Demo 1: StatefulSet Implementation in a Multi-AZ Amazon EKS Cluster 01:33:40 — Demo 2: Chaos Engineering – Verifying PVC Reattachment & Data Persistence 01:38:44 — Understanding Pod-Level DNS with Headless Services 01:43:13 — DevOps Engineer vs DBA: Division of Responsibilities 01:45:41 — Leveraging Kubernetes Operators for Database Management 01:46:36 — Outro & What’s Coming Next 🔖 Hashtags: #Kubernetes #CKA #CloudWithVarJosh #CKACourse #CKA2025 #StatefulSet #MySQLonKubernetes #AmazonEKS #ChaosEngineering #KubernetesStorage #MultiAZ #HeadlessService #DevOps #DBA #KubernetesOperators #StatefulWorkloads #KubernetesDemo #CoreDNS #PVC #KubernetesBestPractices #CKAExamPrep