Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some clarification on mounts needed for none #13040

Merged
merged 1 commit into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions site/content/en/docs/drivers/none.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ This document is written for system integrators who wish to run minikube within

* minikube and the Kubernetes services it starts may interfere with other running software on the system. For instance, minikube will start and stop container runtimes via systemd, such as docker, containerd, cri-o.

### Persistent storage

* minikube expects that some mount points used for volumes are bind-mounted or symlinked to a persistent location:

* `/data`
* `/tmp/hostpath_pv`
* `/tmp/hostpath-provisioner`

If you don't have a dedicated disk to use for these, you can use the `/var` partition which is _usually_ persistent.

### Data loss

With the `none` driver, minikube will overwrite the following system paths:
Expand Down
8 changes: 5 additions & 3 deletions site/content/en/docs/handbook/persistent_volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ minikube supports [PersistentVolumes](https://kubernetes.io/docs/concepts/storag

minikube is configured to persist files stored under the following directories, which are made in the Minikube VM (or on your localhost if running on bare metal). You may lose data from other directories on reboots.

* `/data`
* `/data`*
* `/var/lib/minikube`
* `/var/lib/docker`
* `/var/lib/containerd`
* `/var/lib/buildkit`
* `/var/lib/containers`
* `/tmp/hostpath_pv`
* `/tmp/hostpath-provisioner`
* `/tmp/hostpath_pv`*
* `/tmp/hostpath-provisioner`*

\* mount point for another directory, stored under `/var` or on a separate data disk

Here is an example PersistentVolume config to persist data in the '/data' directory:

Expand Down