-
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
Multi-Node is not producing exact replica nodes (getting file write permission errors on extra node) #9305
Comments
Very strange - I wonder if this maybe due to both nodes sharing a common volume? It doesn't seem like we should be treating the partition any differently. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I think I'm seeing the same issue, it looks like on the master node, the directories created in |
I'll close this for now, please reopen if you're still seeing an issue with latest minikube. |
minikube v1.17.1 on Fedora 32 I could still reproduce this on the latest minikube when deploying artifactory-jcr. Deployment fails with
I tested with single node minikube cluster and permissions (777) were set correctly and it worked fine.
|
@slavonicsniper |
❯ minikube version
minikube version: v1.17.1
commit: 043bdca07e54ab6e4fc0457e3064048f34133d7e This is definitely still an issue. I just ran my original example again and get the same errors on node In terms of asserting which pod is on which node: k get pods -n myapp -o wide | awk '{print $1 " " $7}'
|
@slavonicsniper, @harryttd thanks for your reply i looked a bit more into it and in the summary: you are right, and i'd say that it doesn't work in multinode env - "by design" minikube default storage provisioner uses hostPath type of volume, which means that it will use a local folder ( since this storage-provisioner plugin is installed by default (and is used by default, unless you specify another in your pvc under now, you could run a simple init container in your app pods that with fix the mount folder perms for you, but that still would probably not be a solution for sharing data b/w pods on multiple nodes (different nodes => different mount folders => will see different data; ie, no data replication): only the pods that are currently on the node (master - by default) serving the hostPath volume will be able to access the data stored on that node's folder - ie, pods on other nodes will not as such, this type of volume is not meant to be used for shared loads (across pods on different nodes in a cluster), and other solutions should be used there - ref: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath i hope this helps p.s. a couple of side notes regarding the pvc yaml given in the issue description:
|
still a problem in minikube version: v1.19.0
running. https://kubernetes.io/zh/docs/tasks/run-application/run-single-instance-stateful-application/
|
This is still an issue on minikube |
Actually multi nodes on minikube does not work because each node has a different Each node mounts its data volume (for example I think that this issue can be reopened. |
This is still an issue on minikube |
This issue still exists in minikube 1.28.0 (running on podman rootfully in an Ubuntu 20.04 WSL). |
Steps to reproduce the issue:
minikube start --nodes 2
kubectl apply -f /path/to/yaml
(yaml pasted below)k get pods -n myapp -o jsonpath='{.items[*].spec.nodeName}'
minkube
. Should sayCreated dir /var/foo/bar
.minikube-m02
. Should saymkdir: can't create directory '/var/foo/bar': Permission denied
.Full output of
minikube start
command used, if not already included:yaml for reproducing issue:
My use case's image sets the uid of the container to 100 so mimicking here for reproduction. Running the container as root does not result in any issues.
The text was updated successfully, but these errors were encountered: