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

kubeadm should support create user command #380

Closed
jolestar opened this issue Aug 11, 2017 · 7 comments
Closed

kubeadm should support create user command #380

jolestar opened this issue Aug 11, 2017 · 7 comments
Labels
area/UX help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@jolestar
Copy link

What keywords did you search in kubeadm issues before filing this one?

kubeadm user

Is this a BUG REPORT or FEATURE REQUEST?

FEATURE REQUEST

Versions

kubeadm version (use kubeadm version):
build from latest kubernetes code (commit 7ef5cc23d1b332559cd203f373c026855fc6ea90)

Environment:

  • Kubernetes version (use kubectl version):
    v1.7.3
  • Cloud provider or hardware configuration:
    virtual machine
  • OS (e.g. from /etc/os-release):
    ubuntu 16.04.2
  • Kernel (e.g. uname -a):
    4.4.0-81-generic
  • Others:

What happened?

After init cluster by kubeadm, and use admin.conf as kubeconfg to manager cluster is easy, but it is hard to create a new user and generate kubeconfig.

What you expected to happen?

Add a user manager sub command to kubeadm, I think need to do the following steps to help users create a kubernetes user

  1. Generate a private key and certificate signing request
  2. Send certificate signing request to Kubernetes API
  3. Approve the certificate
  4. Create role/clusterrole by command argument.
  5. Create rolebinding/clusterrolebinding
  6. Download the certificate and generate new user kubeconfig
  7. Now cluster admin can send the kubeconfig to kubernetes user.

How to reproduce it (as minimally and precisely as possible)?

Anything else we need to know?

  1. Whether this feature request matches the goal of kubeadm?
  2. If not, which project or module should this feature request belong to?
@luxas luxas added area/UX kind/enhancement priority/backlog Higher priority than priority/awaiting-more-evidence. labels Aug 14, 2017
@luxas
Copy link
Member

luxas commented Aug 14, 2017

cc @timothysc WDYT?

@jolestar I worry we won't expose the scope of kubeadm much more, but it might be worth exploring what this would look like.

@fabriziopandini
Copy link
Member

fabriziopandini commented Oct 8, 2017

There is 'kubeadm alpha phase kubeconfig user' that goes in this direction, even if the implementation now is pretty simple .e.g

  • the client cert is generated locally (without going through csr approval workflow)
  • roles and roles binding are not managed yet
    Might be with few changes to this subcommand we can address basic needs in this area without expanding to much the scope of kubeadm...

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 7, 2018
@errordeveloper
Copy link
Member

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 22, 2018
@timothysc
Copy link
Member

/cc @mattmoyer @chuckha

@timothysc timothysc added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. triaged labels Jan 31, 2018
@timothysc
Copy link
Member

dupe of #416 there is a WIP and closing this one.

@timothysc timothysc added triage/duplicate Indicates an issue is a duplicate of other open issue. and removed triaged labels Apr 7, 2018
@furkanmustafa
Copy link

I don't think #416 is related. But now the following command works;

kubeadm alpha kubeconfig user --client-name=newuser

And then you need to arrange [cluster]rolebindings, otherwise that user mostly cannot do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/UX help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

8 participants