<p>Minikube is supposed to make it simple to run Kubernetes locally,  not only for "getting started" but also for "day-to-day development workflows".</p>

<p>source : <a href="https://github.com/kubernetes/minikube/blob/master/ROADMAP.md#goals" rel="noreferrer">https://github.com/kubernetes/minikube/blob/master/ROADMAP.md#goals</a></p>

<p>But I can also read that : "PersistentVolumes are mapped to a directory inside the minikube VM. The Minikube VM boots into a tmpfs, so most directories will not be persisted across reboots (minikube stop)"</p>

<p>source : <a href="https://kubernetes.io/docs/getting-started-guides/minikube/#persistent-volumes" rel="noreferrer">https://kubernetes.io/docs/getting-started-guides/minikube/#persistent-volumes</a></p>

<p>So what if my developments need persistent storage (MySQL database, mongodb database, ...) ? Do I need to throw my Minikube and install directly the full Kubernetes ?</p>

<p>This is covered in <a href="https://kubernetes.io/docs/getting-started-guides/minikube/#persistent-volumes" rel="noreferrer">the documentation</a>. The relevant section starts right after the sentence that you've already quoted:</p>

<blockquote>
  <p>However, Minikube is configured to persist files stored under the following host directories:</p>
  
  <ul>
  <li>/data</li>
  <li>/var/lib/localkube</li>
  <li>/var/lib/docker</li>
  </ul>
  
  <p>Here is an example PersistentVolume config to persist data in the ‘/data’ directory:</p>

<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
  name: pv0001
spec:
  accessModes:
    - ReadWriteOnce
  capacity:
    storage: 5Gi
  hostPath:
    path: /data/pv0001/
</code></pre>
</blockquote>

<p>Simply declare <code>hostPath</code> volumes that are mapped to any directory in <code>/data</code> on the host, and these should persist across reboots.</p>
