<p>I have a web application running on a Google Kubernetes cluster. My web app also uses persistent volumes for multiple MongoDB databases to store user and application data.</p>

<p><strong>(1)</strong> Thus I am wondering if it is practical to store all data inside those persistent volumes in the long-run?</p>

<p><strong>(2)</strong> Are there any methods for safely backing up the persistent volumes e.g. on a weekly basis (automatically)?</p>

<p><strong>(3)</strong> I am also planning to integrate some kind of file upload into the application. Are persistent volumes capable of storing many GB/TB of data, or should I opt for something like Google cloud storage in this case?</p>

Florian Ludewig
<p>Deploying statefull apps on K8s is bit painfull which is well known in K8s community. Usually, if we need HA for DBs supposed to deploy as cluster mode. But in K8s, if you want to deploy in cluster mode, you need to check <code>StatefulSets</code> concept. Anyways, I'm pasting links for your questions, so that you can start from there.</p>

<blockquote>
  <p>(1) Thus I am wondering if it is practical to store all data inside
  those persistent volumes in the long-run?</p>
</blockquote>

<ul>
<li><a href="https://kubernetes.io/blog/2017/01/running-mongodb-on-kubernetes-with-statefulsets/" rel="nofollow noreferrer">Running MongoDB on Kubernetes with StatefulSets</a></li>
</ul>

<blockquote>
  <p>(2) Are there any methods for safely backing up the persistent volumes
  e.g. on a weekly basis (automatically)?</p>
</blockquote>

<ol>
<li><a href="https://docs.okd.io/latest/install_config/persistent_storage/persistent_volume_snapshots.html" rel="nofollow noreferrer">Persistent Volume Snapshots</a></li>
<li><a href="https://kubernetes.io/docs/concepts/storage/volume-snapshots/" rel="nofollow noreferrer">Volume Snapshot</a> (Beta from K8s docs)
You can google even more docs.</li>
</ol>

<blockquote>
  <p>(3) I am also planning to integrate some kind of file upload into the
  application. Are persistent volumes capable of storing many GB/TB of
  data, or should I opt for something like Google cloud storage in this
  case?</p>
</blockquote>

<ul>
<li>Not sure, it can hold TBs!?? but definitely, if you have cloud, consider to use it</li>
</ul>
