-
Notifications
You must be signed in to change notification settings - Fork 735
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
The nonroot scale-1 variant does not seem to work in Minikube #318
Comments
Thanks for the report. We've abandoned minikube in favor of k3s so you might actually be the first to test the nonroot kustomization on minikube. Maybe kubernetes/minikube#1990 confirms your suspicion? |
while GKE had no such issues, probably because of fsGroup
Sorry for not getting back sooner. Yes I think you are correct... I went back to running as root inside minikube instead. Do you want me to test the |
I found the issue with k3s locally on Ubuntu as well. Yes please, since you're running a dev cluster I'm interested in how |
Seems to be working, I deployed it in my minikube, created a topic and could produce and consume to it. However
It's also seems to be a new docker base image without any linux tools, so I cant check the permissions on the |
Thank you. I documented the JMX issue in solsson/dockerfiles#29 (comment). But I also haven't seen any actual malfunction :) |
First, I think it's awesome to stop running as root inside the pods.
But I can't seem to get the nonroot to work in Minikube. Is it a general minikube problem? Zookeeper complains about not being able to create things under the /var/lib/zookeeper mountpoint, and if I go in there (had to edit the statefulset to do a sleep instead of the normal command) the folder has different permissions compared to a working setup in AWS:
And here is how it looks in the working setup in AWS:
As seen, in Minikube the nonroot:nogroup user can't write to the data folder. And I assume this is because the init-container when it created the folder, in AWS it respects the fsGroup parameter for the volume, and in Minikube it ignores it.
By adding
chown -R 65532:65534 /var/lib/zookeeper
to the zookeeper init file, it works, but since it seems to be working in AWS, I guess this is just affecting Minikube, or just me? 😄The text was updated successfully, but these errors were encountered: