O'Reilly logo

Kubernetes for Serverless Applications by Russ McKendrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

StatefulSets

This controller is new to Kubernetes and has been designed to replace PetSets. As you may have guessed by the name, pods maintain their state as part of a deployment. They are designed to have:

  • Consistent unique network identifiers throughout the pod's life cycle
  • Persistent storage
  • Graceful deployment and scaling executed in the order you define
  • User-defined and controlled automated rolling updates

So while there is a change in name, you should think of StatefulSets as pets and ReplicaSets as cattle.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required