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

convenient way to copy files automatically to minikube VM #1914

Closed
aaron-prindle opened this issue Sep 6, 2017 · 4 comments
Closed

convenient way to copy files automatically to minikube VM #1914

aaron-prindle opened this issue Sep 6, 2017 · 4 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@aaron-prindle
Copy link
Contributor

Currently there are kubernetes options that require a path to a file configuration/certification. Moving additional files into the minikube VM is currently non-trivial and it's possible that the file may not be present in the VM when localkube starts running. For this use case, we should provide a convenience method for moving files into the VM on boot. Possible implementations:
.minikube/files folder that is moved into the VM, similar to .minikube/addons (vm_path not easily configurable file to file with this)
minikube start flag: --ssh-file=<host_path>:

@r2d4
Copy link
Contributor

r2d4 commented Sep 6, 2017

+1 for $MINIKUBE_HOME/files

@r2d4 r2d4 added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 6, 2017
@r2d4 r2d4 closed this as completed Sep 6, 2017
@viteksafronov
Copy link
Contributor

All the files from ~/.minikube/files are copying to /files directory of VM without preserving their folder structure. Is there a way to automatically copy my files into another location and specific directory, say /etc/docker/certs.d?

@r2d4
Copy link
Contributor

r2d4 commented Sep 18, 2017

It might be an interesting idea to let users specify a rootfs at ~/.minikube/files/. and move those files into the VM at root /, while preserving the folder structure.

cc @aaron-prindle

@prageethw
Copy link

prageethw commented Dec 31, 2017

Guys,

currently, the files in ~/.minikube/files get coppied in to / (root) in VM.
is this a feature or defect?

minikube build info is follow

cc: @aaron-prindle @r2d4

minikube version: v0.24.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants