Question
How is a managed databased accessed by a Kubernetes cluster?
How is a managed databased accessed by a Kubernetes cluster?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
As a stateful program, we can deploy a database at Kubernetes. They normally have their own storage when we deploy pods, but that storage is ephemeral - if the container loses its storage, it’s gone with it.
So we’ll have a Kubernetes object to tackle that scenario: we connect a pod with a corresponding persistent volume argument when we want our data to persist. Through doing it this way, it will be in the cluster if our container destroys our data, and the new pod will access the data accordingly.
You can also go through this tutorial to understand in detail: https://www.loginradius.com/blog/async/understanding-kubernetes/