If you are using VirtualBox with minikube, it will mount the /Users/xxx/ folder in the VM.
You can use a hostPath volume to mount a local folder on your mac on to a pod volume. hostPath: path: /Users/my-username/Downloads/example On Friday, March 3, 2017 at 7:22:32 PM UTC-7, Imran Akbar wrote: > > Figured it out - the Pod was crashing after the service tried to start. > Once I fixed that everything worked. > > But I still can't figure out how to do hot reload of code locally. > I have to delete and re-create the deployment for it to pick up the latest > code that's mounted to the volume via hostPath. > Is there any way to have Kubernetes share the folder live? > > thanks > > On Friday, March 3, 2017 at 12:55:27 PM UTC-8, Imran Akbar wrote: >> >> Hi, >> >> I'm trying to expose my Deployment to a port which I can access through >> my local computer via Minikube. >> >> I have tried two YAML configurations (one a load balancer, one just a >> service exposing a port). >> I: http://pastebin.com/gL5ZBZg7 >> II: http://pastebin.com/sSuyhzC5 >> >> The deployment and the docker container both expose port 8000. >> >> The first results in a service with a port which never finishes, and the >> external IP never gets assigned. >> The second results in a port of bot:8000 TCP, bot:0 TCP in my dashboard >> and when I try "minikube service bot" nothing happens. >> >> I am on Mac OS X. >> >> How can I set this up properly? >> >> thanks, >> imran >> > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.
