Skip to Content
Hands-On Microservices with Kubernetes
book

Hands-On Microservices with Kubernetes

by Gigi Sayfan
July 2019
Intermediate to advanced
502 pages
14h
English
Packt Publishing
Content preview from Hands-On Microservices with Kubernetes

When should you use a StatefulSet?

You should use a StatefulSet when you manage your data store yourself in the cloud and require good control over the storage your data store uses. The primary use case is for distributed data stores, but a StatefulSet is useful even if your data store has just one instance or pod. The stable pod identity with the stable attached storage is well worth it, although orderliness, of course, is not required. If your data store is backed up by a shared storage layer such as NFS, then a StatefulSet might not be necessary.

Additionally, this may be common sense, but if you don't manage the data store yourself, then you don't need to worry about the storage layer and you don't need to define your own StatefulSets. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes Microservices

Kubernetes Microservices

Richard Chesterwood
Cloud Native DevOps with Kubernetes

Cloud Native DevOps with Kubernetes

John Arundel, Justin Domingus
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili

Publisher Resources

ISBN: 9781789805468Supplemental Content