Fixed points
So far we have been discussing lots of potentially small moving parts. What about big fixed points such as databases and file storage? How do they fit in with FaaS services on Kubernetes?
Databases
There is still debate going on as to whether you should be running your database services in containers—this has pretty much been around since Docker first started to get traction, and unfortunately, there is no simple yes or no answer.
Whenever I approach a project, I tend to look at the usage and what impact the database has on the overall performance of the application itself, and then work back from there.
Kubernetes allows you to run a PetSet; think back to the pet versus cattle analogy from the start of the book. In Kubernetes v1.5, as the feature left alpha, it became known as a StatefulSet. The feature came out of beta in Kubernetes v1.9.
Note
See the following GitHub issue for a discussion about the change of name from PetSet to StatefulSet https://github.com/kubernetes/kubernetes...