-
Notifications
You must be signed in to change notification settings - Fork 716
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
kubeadm shouldn't have to run as root #57
Comments
From @pires on October 5, 2016 11:12 @errordeveloper this could also be part of the proposal for a kubelet pod API (#28138). Thoughts? |
From @errordeveloper on October 10, 2016 15:10 @pires yes, I think this is a key UX requirement, but it's somewhat easy to overlook. |
@ethernetdan @aaronlevy wdyt? |
What about "reset" functionality ? it's not only about cleaning up pods. |
@pires no, #42 is about other thing. At the moment, if
Some of file operations are ok to be done as non-root, if permissions on certain directories would be enough for user under which kubeadm is executed. But some of steps like unmounts, restarts of the kubelet might still require root privileges. |
I'm sure they are related as @errordeveloper we have to decide if whether we can change the filesystem and manage the |
code-wise, they might be re-using some bits, but In theory, if kubelet would allow locally to do exec into running containers of e.g. etcd and kube-proxy, it would be possible to execute in privileged mode some of filesystem operations even if kubeadm run as non-root. but that's a bit of hackish workaround, which might not work properly if kubelet is somehow not functional properly and user still wants to do hard reset of the host. It will still keep open question about service restarts. |
I don't think this is a priority item. Because we set up kubernetes on a node, which will effectively act as root on the node, it's not a problem to run the setup process temporarily as root. IMO, we should focus on other things right now, but if someone has something clever to share, please speak out of course! re: |
Closing this, as we won't investigate this for a very long time. |
From @errordeveloper on October 3, 2016 10:55
Right now kubeadm requires root access, but it shouldn't need, once we have APIs for creating pods and PKI secrets in local kubelet.
Copied from original issue: kubernetes/kubernetes#33907
The text was updated successfully, but these errors were encountered: