<p>I am running minikube/Kubernetes and am having difficulty accessing a volume from a volumeMount in a deployment.  </p>

<p>I can confirm that when the microservice starts up, it is not able to access the /config directory (ie. the "mountPath" in the "volumeMounts").  I have verified that the hostPath/path is valid.</p>

<p>I have experimented with a number of techniques and have also validated that the deployment files is correct.  I have also tried using quotes/double-quotes/no-quotes around the path specifications, but this does not address the issue.</p>

<p>Note that I am using a "hostPath" for simple testing purposes, however, this is the scenario that I nevertheless need to address.</p>

<p>My minikube configuration is illustrated below:</p>

<pre><code>$ kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"2017-01-12T07:30:54Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<p>I am running minikube on MacOS/Sierra version 10.12.3 (16D32).</p>

<p>My deployment file (deployment.yaml):</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: atmp1000-deployment
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: atmp1000
    spec:
      containers:
      - name: atmp1000
        image: atmp1000
        ports:
        - containerPort: 7010
        volumeMounts:
          - name: atmp1000-volume
            mountPath: '/config'
      volumes:
      - name: atmp1000-volume
        hostPath:
          path: '/Users/&lt;username&gt;/&lt;some-path&gt;/config'
</code></pre>

<p>Any help is appreciated.</p>

<p>In the interest of completeness, below is the solution that I found... I got the hostPath and mounts working on minikube (on Mac) which took a few steps but required several "minikube delete" commands to get the most current version and reset the environment.  Below are some additional notes about how to get this functioning:</p>

<ul>
<li><p>I had to use the xhyve driver to make it all work properly -- it probably works using other drivers but I did not try them.</p></li>
<li><p>I found that minikube mounts host paths at "/User" which means the "volumes/hostPath/path" should start at "/User"</p></li>
<li><p>I found a variety of ways that this worked including using claims but the files in the original question now reflect a correct and simple configuration. </p></li>
</ul>
