KubeFM

Replacing StatefulSets with a custom Kubernetes operator in our Postgres cloud platform, with Andrew Charlton

Apr 22, 2025
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

StatefulSets' Limits for Postgres

  • Kubernetes StatefulSets are useful for simple stateful apps but lack the context for sophisticated database needs like primary-replica roles and backups.
  • When dealing with high availability Postgres clusters, StatefulSets' limitations force you to seek custom solutions for intelligent management.
INSIGHT

Operators Add Context Beyond StatefulSets

  • Kubernetes operators extend control by adding context to manage complex, stateful database workflows without disruption.
  • Operators can intelligently sequence actions, like restarting replicas before primaries, avoiding downtime caused by StatefulSets.
INSIGHT

StatefulSet Challenges With Pods and Volumes

  • Pod ordering and immutable volume templates in StatefulSets cause operational challenges like unnecessary failovers and difficulty resizing volumes.
  • Complex workflows like downsizing large database volumes require stepping outside StatefulSets' assumptions to avoid disruption.
Get the Snipd Podcast app to discover more snips from this episode
Get the app