minikube/docs/syncing-files.md

16 lines
565 B
Markdown
Raw Normal View History

# minikube: Syncing files into the VM
## Syncing files during start up
As soon as a VM is created, minikube will populate the root filesystem with any files stored in $MINIKUBE_HOME (~/.minikube/files).
2019-05-22 23:21:32 +00:00
For example, running the following commands will result in `/etc/OMG` being added with the contents of `hello` into the minikube VM:
```shell
mkdir -p ~/.minikube/files/etc
2019-05-22 23:21:32 +00:00
echo hello > ~/.minikube/files/etc/OMG
minikube start
```
This method of file synchronization can be useful for adding configuration files for apiserver, or adding HTTPS certificates.