-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Storage provisioner broken for multinode mode #12165
Comments
I think this is a known limitation. Possibly somewhat undocumented, but not surprising. Theoretically it could work, if "something else" was distributing the files between nodes ? But node affinity sounds like a good addition. (multi-node was not really part of the spec) Unfortunately minikube's local storage provisioner is somewhat old and unmaintained 😔 |
Yeah, this is a known issue. Thank you for filing this. Help wanted! |
afaik, kind just uses the rancher local-path-provisioner (although somewhat customized) :
See |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
This comment was marked as outdated.
This comment was marked as outdated.
Is there an alternative storage driver one can use for minikube that supports multi-node setups? |
install_provisioner:
curl https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml | sed 's/\/opt\/local-path-provisioner/\/var\/opt\/local-path-provisioner/ ' | kubectl apply -f -
kubectl patch storageclass standard -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' |
@R-omk Thanks for your quick reply. So this installs the rancher I will install it in the upcoming days in my cluster and will let you know, if I face any troubles ;) |
@R-omk Yes, the local-path-provisioner solved all my multi node issues. |
This comment was marked as outdated.
This comment was marked as outdated.
Hi @R-omk, we continue to seek help wanted for this issue. |
I've frozen this issue we won't end up accidentally closing it due to age. |
will this be fixed at some point? I am using the workaround from @R-omk but was hoping for a formal fix in a future release |
It seems that the hostpath provisioner is completely unsuitable for multinode installations.
It must create and prepare directories on the exact host on which a pv is requested. In addition, it must add nodeaffinity for every hostpath pv exactly the same as it happens at https://github.com/rancher/local-path-provisioner
Steps to reproduce the issue:
minikube version: v1.22.0
storage-provisioner: image: 'gcr.io/k8s-minikube/storage-provisioner:v5'
The text was updated successfully, but these errors were encountered: