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
Running as non-root prevents authenticator from writing to host path #49
Comments
Hi, @baniol! Probably this is a documentation issue as what you see itself is more or less how docker works. You should specify the uid of the init process of the container to one of the user has write access to any volume. Otherwise, it just fails to write, which is what you see. So, assuming you're using minikube, would you mind confirming if this works? docker run -u $(minikube ssh 'sh -c "id -u $USER"' | tr -d "\r") -v $(pwd)/work:/work -w /work gcr.io/heptio-images/authenticator:v0.2.0-pre init --cluster-id foo whereas an expected result should be:
|
Hi, I had tried this in KOPS cluster. I had pre-generated the Configuration files, then faced the same problem (This time with default Root user). The Pod in the I discovered that there is a flag option I'm using version |
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. |
Stale issues rot after 30d 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. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Allow Kubeconfig to be more configurable
Build from
v0.2.0-pre
tag. Container running as a non-root user.Pod is crashing because it can't write kubeconfig to a host folder:
The text was updated successfully, but these errors were encountered: