-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run hostpath integration example #37
Comments
Upon further inspection it seems that once the host-path driver container starts, the docker daemon cleans up the /var/run directory. |
Further information: this seems to only happen when I run it using minikube. I ran it on normal cluster and it seems to be working fine. So there must be some issue with how I am setting up my minikube cluster |
I ended up fixing the problem with the following script:
The syslinks from /run to /var/run where misbehaving when launching pods with bind mounts due to them being relative syslinks. Changing them to absolute syslinks using the last two commands fixed that. Kubeadm gave me a 80-20 split of not working/working so I switched to localkube and everything seems to be working now! Hope this helps someone and prevents them from delving down into this particular rabbit hold. |
I think I faced the same issue and was able to create an easy reproducer for it. I filed a minikube issue |
@oleksiys @sean-dooher: thanks for your analysis on this one. Do you agree that we can close this issue now, as it seems to be caused by minikube? We could of course document the issue, but I don't think we should - that would become unmanageable quickly. |
I agree, I think we can close this issue and add a reference to the minikube issue from the "Known issues" section. |
Oleksiy <[email protected]> writes:
I agree, I think we can close this issue and add a reference to the
minikube issue from the "Known issues" section.
Care to send a PR for that?
|
Above command doesn't work with Kubernetes version 1.12.4. This PR shows localkube removed from latest minikube. As per csi documentation, steps are written for Kubernetes 1.12 version. |
minikube 1.1.1 & Kubernetes v1.14.3 have same issue》 |
Link to page: https://kubernetes-csi.github.io/docs/Example.html
I've been trying to develop my own CSI driver, but unfortunately I can't even seem to get the example in the docs running with minikube. I have tried it on both a macOS and linux host with the kubeadm bootstraps and the kvm2, virtualbox, and hyperkit drivers for minikube.
I am consistently getting the following error:
I have tried to create the folder manually before deploying to no avail. I'm not sure if there's a problem with my config or if it's a problem with the driver itself. Either way, the example is not working and should probably be updated to work. I'll continue working on fixing it (any help would be appreciated) and if I find a solution I'll submit a PR.
The text was updated successfully, but these errors were encountered: