-
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
none driver: remove internal calls to "sudo" #10485
Comments
Hey @pkjasawat thanks for opening this issue. Looks like you are using the none driver with insufficient permissions:
You may need to try running |
Hi @priyawadhwa , Thanks for your response. I tried that but unfortunately it did not work. In my opinion I am getting permission denied because its trying to run sudo from root user and which is not allowed. steps I also tried as root:
Conclusion:
Please let me know if my understanding is correct and if it can be fixed? |
Hey @pkjasawat glad you were able to get that working! And your idea seems reasonable -- if you, or anyone else, would be interested in removing the calls to |
Normally we don't recommend running minikube as root, but then again Katacoda* is doing it already. It is indeed unnecessary to use sudo, when running as root. We don't want users running "sudo minikube", since it makes the configuration paths strange. * https://kubernetes.io/docs/tutorials/hello-minikube/ However, on the normal systems root is allowed to run all commands with sudo:
So this looks specific to RHEL. Either way, would be nice to abstract the sudo away. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
The Kubernetes project currently lacks enough active 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 rotten |
Steps to reproduce the issue:
1.installed docker ee v19.03.14. docker instance is up and running
2. installed minikube v1.2.0 as root.
3.Now trying to start minikube cluster (minikube start --vm-driver=none)
Full output of failed command:
Full output of
minikube start
command used, if not already included:[root@myhostname ~]# minikube start --vm-driver=none
! This bare metal machine is having trouble accessing https://k8s.gcr.io
X Exiting due to GUEST_CERT: certificate symlinks: create symlink for /usr/share/ca-certificates/minikubeCA.pem: sudo /bin/bash -c "test -s /usr/share/ca-certificates/minikubeCA.pem && ln -fs /usr/share/ca-certificates/minikubeCA.pem /etc/ssl/certs/minikubeCA.pem": exit status 126
stdout:
stderr:
/bin/bash: /bin/ln: Permission denied
Optional: Full output of
minikube logs
command:[root@myhostname /]# minikube logs
could you please let me know how to fix this issue. I just have started learning kubernetes and not an expert in this area.
The text was updated successfully, but these errors were encountered: