Docker Community Forums

Share and learn in the Docker community.

Kubernetes failing to bind persistent volume


(Sgandon) #1

I am trying to launch the kafka helm chart on the new kubernetes integration in docker for mac.
I have installed helm and the dashboard
then I use the following command:
$ helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
$ helm install --name my-kafka incubator/kafka
And I get an error from the kubelet docker-for-desktop saying

Error: lstat /Users/xxx/.docker/Volumes/datadir-my-kafka-zookeeper-0/pvc-b48b00b7-f311-11e7-8e0e-025000000001: no such file or directory
but the folder does exists.
Any idea on how to solve this please ?
Thanks for your great tools.


(林哲緯) #2

same here.

Events:
  Type     Reason                 Age               From                         Message
  ----     ------                 ----              ----                         -------
  Normal   Scheduled              20s               default-scheduler            Successfully assigned notebook-5a54c37ce6da4d000123ee99 to docker-for-desktop
  Normal   SuccessfulMountVolume  20s               kubelet, docker-for-desktop  MountVolume.SetUp succeeded for volume "pvc-0c415d61-f539-11e7-83ea-025000000001"
  Normal   SuccessfulMountVolume  20s               kubelet, docker-for-desktop  MountVolume.SetUp succeeded for volume "config-volume"
  Normal   SuccessfulMountVolume  20s               kubelet, docker-for-desktop  MountVolume.SetUp succeeded for volume "default-token-2tlkq"
  Normal   Pulled                 4s (x3 over 19s)  kubelet, docker-for-desktop  Container image "jupyter/minimal-notebook" already present on machine
  Warning  Failed                 4s (x3 over 19s)  kubelet, docker-for-desktop  Error: lstat /Users/john/.docker/Volumes/data-storage/pvc-0c415d61-f539-11e7-83ea-025000000001: no such file or directory
  Warning  FailedSync             4s (x3 over 19s)  kubelet, docker-for-desktop  Error syncing pod

but I still can use ls to list /Users/john/.docker/Volumes/data-storage/pvc-0c415d61-f539-11e7-83ea-025000000001


(Alexjg) #3

I’m also running into this, has anyone discovered a solution?


(Pkrishnath) #4

Same here on Mac !!!.

Any one resolved?


(Guillaume Rose) #5

Hi all,

We wrote a fix for that. Can you try this build : https://download.docker.com/mac/edge/22642/Docker.dmg ?

The problem was that kubelet and docker were running in 2 different containers (in LinuxKit). We had to merge them in order to see the same filesystem.

Let me know, if it’s better. It should be released next week.

Thanks,
Guillaume


(Sgandon) #6

Thank Guillaume,
Trying it right now.
This works much better !
awsome


(Svidrascu) #7

Working fine with this build, when will this be released?