Giter VIP home page Giter VIP logo

Comments (9)

sean-dooher avatar sean-dooher commented on August 28, 2024 1

I ended up fixing the problem with the following script:

#!/bin/bash
minikube start --vm-driver=hyperkit --kubernetes-version v1.10.0 --feature-gates=KubeletPluginsWatcher=true,BlockVolume=true,CSIBlockVolume=true --bootstrapper=localkube

# replace /var sys links with abs links
VAR_CMD="sudo find /var -type l -execdir bash -c 'ln -sfn \"\$(readlink -f \"\$0\")\" \"\$0\"' {} \\;"
minikube ssh "$VAR_CMD"

# replace etc sys links with abs links
ETC_CMD="sudo find /etc -type l -execdir bash -c 'ln -sfn \"\$(readlink -f \"\$0\")\" \"\$0\"' {} \\;"
minikube ssh "$ETC_CMD"

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.

from docs.

sean-dooher avatar sean-dooher commented on August 28, 2024

Upon further inspection it seems that once the host-path driver container starts, the docker daemon cleans up the /var/run directory. /var/run/docker.sock disappears alongside a variety of other files in /var/run/docker, although systemctl still shows the daemon as active and running. The log file for the hostpath-driver container is empty as well. I have tried this with a few other csi-drivers such as the mock-driver and the same behavior occurs.

from docs.

sean-dooher avatar sean-dooher commented on August 28, 2024

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

from docs.

oleksiys avatar oleksiys commented on August 28, 2024

I think I faced the same issue and was able to create an easy reproducer for it. I filed a minikube issue
kubernetes/minikube#3378

from docs.

pohly avatar pohly commented on August 28, 2024

@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.

from docs.

oleksiys avatar oleksiys commented on August 28, 2024

I agree, I think we can close this issue and add a reference to the minikube issue from the "Known issues" section.

from docs.

pohly avatar pohly commented on August 28, 2024

from docs.

chandresh-pancholi avatar chandresh-pancholi commented on August 28, 2024

Above command doesn't work with Kubernetes version 1.12.4.

This PR shows localkube removed from latest minikube.
kubernetes/minikube#2911

As per csi documentation, steps are written for Kubernetes 1.12 version.

from docs.

zhangxiaoyu-zidif avatar zhangxiaoyu-zidif commented on August 28, 2024

minikube 1.1.1 & Kubernetes v1.14.3 have same issue》

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.