Skip to content
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

run skaffold with non root user #5897

Closed
devopsmash opened this issue May 24, 2021 · 2 comments
Closed

run skaffold with non root user #5897

devopsmash opened this issue May 24, 2021 · 2 comments

Comments

@devopsmash
Copy link

devopsmash commented May 24, 2021

I'm currently running my minikube with non root user on my ubuntu 20.04 with: minikube start --driver=none
But when I'm trying to run skaffold with non root user it's asking for sudo password

Expected behavior

Ability to run skaffold without sudo permissions

  • Skaffold version: v1.24.1
  • Operating system: Ubuntu 20.04.2 LTS
  • Installed via: skaffold.dev

Steps to reproduce the behavior

  1. start minikube with driver none: minikube start --driver=none
  2. run any skaffold command like: skaffold build
  3. you will be asked for sudo password

minikube should support running with non root user on driver none: kubernetes/minikube#3760

@briandealwis
Copy link
Member

Could you run with -v debug and attach the log here? That will include the external commands being invoked. Skaffold doesn't invoke sudo or su, but clearly something is invoking it and the logs should help track that down.

@devopsmash
Copy link
Author

it seems that it was an issue on my pc that minikube from some reason requested for sudo probably due to left overs from old minikube installations.
The related command was: /usr/local/bin/minikube docker-env --shell none -p minikube --user=skaffold
After re-install the mikube it didn't ask sudo for the command above

The only thing that might help on this scenario from the skaffold level can be only to verify that the current user can run minikube commands, and if not just to present the error. But it's not so critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants