K8s StatefulSets Explained | Postgres | Spring Boot

TheCodeAlchemist · Beginner ·🏗️ Systems Design & Architecture ·1d ago
Repo - https://github.com/therealdumbprogrammer/spring-k8s-workshop/tree/feature/video-7-db Docs - https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/ In this video, we explore why databases are different from stateless applications in Kubernetes and when StatefulSets become necessary. Starting with Persistent Volumes (PV) and Persistent Volume Claims (PVC), we build up to running PostgreSQL with persistent storage, examine when a simple Deployment + Service + PVC is sufficient, and uncover the identity challenges that arise in replicated database systems. ⏱️ Timestamps 00:00 – Intro 01:08 – StatefulSets explained 11:07 – Deploying Postgres on k8s 21:34 – Adding DB support in code #SpringBoot #Kubernetes #SpringBootDocker #SpringBootOnKubernetes #KubernetesLocalSetup #SpringBootBuildImage #JavaDevelopers #SpringBootTutorial #KubernetesForJava #CloudNative #javamicroservices
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

System Design Journey — Week 4: Reliability, Failures & Designing a Payment API
Learn to design a reliable Payment API by understanding failures and reliability in distributed systems
Dev.to · Majd-sufyan
The Illusion of Microservices: Why the Modular Monolith is Once Again the Gold Standard in Architecture
Learn why modular monoliths are regaining popularity over microservices and how to apply this architecture in your projects
Dev.to · Paulo Dalmas
Engineering a High-Performance LSM-Tree Storage Engine: MemTables, SSTables, and Compaction
Learn to engineer a high-performance LSM-Tree storage engine by understanding MemTables, SSTables, and compaction strategies
Dev.to · Ebendttl
Full Stack Institute in Pitampura — DICS Innovatives
Learn about the growing demand for skilled web developers and the importance of full stack development in today's digital world
Medium · UX Design

Chapters (4)

Intro
1:08 StatefulSets explained
11:07 Deploying Postgres on k8s
21:34 Adding DB support in code
Up next
Public cloud vs. on-prem: Summit on where each workload belongs
The New Stack
Watch →