Setting up OSBA
In this section, we will set up OSBA on our cluster. OSBA will allow us to create a MySQL database without leaving the Kubernetes cluster. We will start this section by explaining the benefits of using a hosted database versus running StatefulSets on Kubernetes itself.
The benefits of using a managed database service
All the examples that we have gone through so far have been self-contained, that is, everything ran inside the Kubernetes cluster. Almost any production application has state, which is generally stored in a database. While there is a great advantage to being mostly cloud-agnostic, this has a huge disadvantage when it comes to managing a stateful workload such as a database.
When you are running your own database on top of a Kubernetes cluster, you need to take care of scalability, security, high availability, disaster recovery, and backup. Managed database services offered by cloud providers can offload you or your team from having to execute these...