I\'m trying to configure a hostPath to launch Mongodb pod.
I have only one node of kubernetes v1.8.5 installed with rancher last stable version.
I have creat
If by any chance you are using minikube, then don't forget that minikube itself is a container. So hostPath points to a path in that container, not to a path on your host machine. You have to mount your PC path into the minikube container and then into the POD.
Example:
minikube start --mount --mount-string="/host/path:/minikubeContainer/path"