Kubernetes - StatefulSets


Prabhat Sharma


@hiprabhat
@prabhatsharma

Why StatefulSets

Stateful Applications

  • Postgres
  • MongoDB
  • Redis
  • Any other DB
  • NFS
  • ...

What is a StatefulSet?

  • For managing stateful applications
    • Think persistent storage
  • Like a Deployment
    • Managed pods are identical
  • Unike a Deployment
    • Maintains Sticky identity for each pod
    • Pods not interchangeable
    • Each pod has persistent identifier that is maintained across rescheduling
    • Scaling is not seamless

Sample Yaml Definition

Cassandra

Thank You

Questions?