In this chapter, we dealt with the very important topic of storage and real-world data persistence. We learned about the Kubernetes storage model, the common storage interface, and StatefulSets. Then, we discussed how to manage relational and non-relational data in Kubernetes and migrated several Delinkcious services to use proper persistent storage through StatefulSets, including how to provide data store endpoints for StatefulSet pods. Finally, we implemented a non-ephemeral data store for the news service using Redis. At this point, you should have a clear idea of how Kubernetes manages storage and is able to choose the proper data stores for your system, as well as integrate them into your Kubernetes cluster and with your services.
In the next chapter, we will explore the exciting domain of serverless computing. We'll consider when the serverless model is useful...