-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[hyperkit minikube] NFS Provisioner going in crash loop #2597
Comments
it works for me in linux
somebody has to rule out if this is a problem of the docker desktop vm kernel/linux settings in mac
the message may indicate something in that area |
So @aojea thanks for trying that out, this works in docker desktop on mac, but it doesn't work when minikube is used on a mac with hyperkit driver and |
uff, I don't know how this combo works, maybe better ask @afbjorklund or ask in minikube directly |
the "minikube start --no-kubernetes --vm" command is a complicated way to run docker-machine it got more popular when Docker finally dropped the other project 2021 (after ignoring it since 2019) See also https://github.com/docker-archive/toolbox Theoretically it could be used for other runtimes too... Like: podman-machine, nerdctl-machine, another-machine It runs the (cr) provisioner, but not the (k8s) bootstrapper. |
This comment has been minimized.
This comment has been minimized.
I seem to have looked at this old ugly Fedora installation of a userspace NFS server before... It was something about not touching with a ten foot pole ? Hopefully they will make a new release of a ganesha provider. https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner Maybe the new fc35 base image works better, than the old fc30 one ? Not sure if kind has any supported |
what @afbjorklund said 🙃 So to be clear NFS support depends on the host / VM (in this case the hyperkit VM from docker-machine / minikube). I'm not allowed to run VMs on my corporate owned machines, in CI we have only linux (see existing issues about macOS and Windows) and I'm a bit too overloaded to dig into setting this up elsewhere tbh. #1487 has more on NFS, it should work, generally. #1487 (comment) (Actually I see you are already on this thread previously, but for reference to others reading this issue)
I don't think so, AFAIK the best option for RWM is NFS on most providers, and generally just installing the community NFS provisioner. If this is outdated I'm not sure what to recommend instead. It should also be noted per #1487 that NFS of any sort will not work in kind on particularly old kernels as NFS-on-overlayfs was not supported yet. (kernels older than 4.15) |
Thanks for the input @BenTheElder @afbjorklund but yeah if wanna start to debug the issue from where shall I start or where to dig in, any suggestions would be really appreciated, |
The minikube OS was supposed to have |
And what made me think that it could be some thing related to kind due to this test
|
Here is what I saw in the logs:
This was on a
|
Yeah kind of same and here are the logs from the pods when ran minikube with kubernetes
Outputs
Also I could see when I install NFS provisioner on this version (minikube + k8) it gets deployed as a pod
And this i when I start minikube ***without*** kubernetes and deploy nfs on kind cluster with is deployed on minikube docker env
Now I have less information on how things are working above but if some how I start the minikube without k8 and deploy the container for nfs provisioner server out side as and pod and then reference that in kind deployments would it work ? , also I checked the command how provisioner is being started up |
I think it is the usual craziness of systemd, raising the number of files to require lots and lots of memory. Like https://bugzilla.redhat.com/show_bug.cgi?id=1796545 Same bug that is hanging
minikube: 1024
kind: 1048576
|
#1487 (comment) this should have been patched by libtirpc update, which kind at least should be shipping in the latest version. the ulimit difference should be from having systemd 240+ and patched libtirpc should be able to handle it 🤔 |
Hey @BenTheElder @afbjorklund thanks for the cool tip , I just increased the ulimit for open files to |
I opened a special issue, for users wanting to run minikube (kubernetes) on top of minikube (docker): I'm guessing that more people will get desperate, when they can't use the "Free" version anymore ? |
Also I would like to see If we could somehow leverage https://multipass.run/ |
I think you want to open a new issue for which "docker" to use in kind, it is off-topic here. |
#2597 (comment) perhaps systemd/libtirpc is older on the hyperkit VM? |
I don't think there's anything else for us to do here, this issue is more than a year old with nothing further to follow-up on at the moment. |
What happened: I used to use kind on docker desktop and was happily deploying nfs server in k8 using helm which is using image
quay.io/kubernetes_incubator/nfs-provisioner:v2.3.0
now I have recently switched to minikube with no kubernetes to leverage the docker inside of it obviously because much resources were taken by the previous one, now when I am deploying the same nfs server on kind cluster with same config the pod for nfs provisioner goes into crash loop, now this happens on kind cluster in minikubes' docker when I install nfs server, with no kubernetes, however, if i use minikube with kubernetes and deploy same NFS server using helm it runs successfully but as I try to submit a PVC it says it can't provision the storage (even when the amount of storage i asked was 1Mi) i understand that could be something related to minikube but this issue is there, I am using minikube with hyperkit driver, I tried to debugg the issue to gather more information but couldn't do it, so I would also like to request the direction I should go to debug this, or possibly make this work, also some hints on what might be happenig.What you expected to happen: KinD cluster should be more agnostic towards different environments.
How to reproduce it (as minimally and precisely as possible):
Step 1: Start minikube with no kubernetes
minikube start --driver hyperkit --no-kubernetes; eval $(minikube -p minikube docker-env)
Step 2:
Create KinD cluster
kind create cluster
Step 3: Install NFS server (if you have helm else click here)
NFS yamls
Anything else we need to know?:
Environment:
kind version
):kind v0.11.1 go1.16.4 darwin/amd64
kubectl version
):docker info
):/etc/os-release
):Linux minikube 4.19.202 #1 SMP Wed Oct 27 22:52:27 UTC 2021 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: