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

bad permissions on ~/.kube/ on kubernetes-worker units #173

Closed
axinojolais opened this Issue Jan 4, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@axinojolais
Copy link

axinojolais commented Jan 4, 2017

Hi,

When the kubernetes-work charm creates ~/.kube/config, it does so as root.
It then chowns the "config" file to ubuntu:ubuntu.

However, this leaves ~/.kube owned by root:root, which prevents kubectl commands running on the unit from using caching. Example error message (from kubectl get po -v=8) :

I0103 14:51:14.837391    9153 cached_discovery.go:123] failed to write cache to /home/ubuntu/.kube/cache/discovery/10.25.62.147_443/servergroups.json due to mkdir /home/ubuntu/.kube/cache: permission denied

This issue is resolved with a simple "chown ubuntu:ubuntu ~/.kube"

Thanks

@lazypower

This comment has been minimized.

Copy link
Contributor

lazypower commented Jan 4, 2017

Patch submitted in juju-solutions/kubernetes#96

@lazypower

This comment has been minimized.

Copy link
Contributor

lazypower commented Jan 4, 2017

@mbruzek @wwwtyro @Cynerva Need some eyeballs on this one, should be bite sized though :)

@lazypower

This comment has been minimized.

Copy link
Contributor

lazypower commented Jan 4, 2017

Closed, will be released with the next charm cut

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