Mount local directory into pod in minikube

前端 未结 8 498
失恋的感觉
失恋的感觉 2020-12-03 02:23

I am running minikube v0.24.1. In this minikube, I will create a Pod for my nginx application. And also I want to pass data from my local directory.

That means I wan

8条回答
  •  长情又很酷
    2020-12-03 03:05

    I tried out aerokite's solution, but found out that I had to pass --mount as well as --mount-string "local-path:minikube-path" to mount a directory in minikube.

    minikube start --mount-string ${HOME}/go/src/github.com/nginx:/data --mount. Spent some time figuring this out.

提交回复
热议问题