Managing a microservice-based deployment is complicated and Kubernetes helps tremendously but not all microservices are stateless! For the stateful services, we are encouraged to deploy a database per service - which increases complexity and leads on the the next question: Where does my state live?
Outline:
This talk will demonstrate several patterns to consider when using Kubernetes and its persistent volume feature. We will take a look at how to:
- deploy stateful microservices that have a network attached block device for storage
- move stateful containers around the cluster and have their storage volume follow
- perform automatic fail-over with a stateful service
- explore and configure the range of volume drivers available for Kubernetes
We will also take a deep-dive into how volume drivers work and discuss what the future holds for stateful containers being managed by Kubernetes.