<p>I recently started to look at GKE. Lets assume we have a basic web application (back-end and front end)</p>

<p>The front end connects to the back-end trough a NGINX LB, so if you need more power you scale the PODs and the LB distributes the load between the nodes and its works perfectly, so my question is, what happens if you inside your container have the DB ? when you scale the Kubernetes cluster it will create a db for each of the nodes, correct ? In that case it will be a problem ? so that being said how it is used in the market these days, I would assume you put in a container only the backend and use another service from the cloud provider to store the data so in that way the service can get requests from all the containers and there wont be data discrepancy . </p>

<p>You answered yourself already. Most people run frontends and backends in containers and use (for google for example) Cloud SQL, Datastore or BigQuery to store the data.  </p>
