💻 Tech
Mounting a volume to a path based on a path from the host machine in minikube: minikube mount source_path:destination_path [-p profile-name]
For example: minikube mount .:/host -p default
. This mounts /host
with files from the current directory. In effect, accessing the directory can be done with hostPath
in k8s.