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

--extra-config=apiserver.authorization-mode=RBAC causes minikube start to hang: unknown flag: --Authorization.Mode #2798

Closed
wallrj opened this issue May 8, 2018 · 10 comments
Labels
cause/apiserver-flags Bad flags passed to apiserver kind/bug Categorizes issue or PR as related to a bug. triage/obsolete Bugs that no longer occur in the latest stable release

Comments

@wallrj
Copy link
Contributor

wallrj commented May 8, 2018

The documentation at:

Says:

To set the AuthorizationMode on the apiserver to RBAC, you can use: --extra-config=apiserver.authorization-mode=RBAC.

But this causes Minikube to hang.

minikube start -v 10 --extra-config=apiserver.Authorization.Mode=RBAC
...
Setting up kubeconfig...
Starting cluster components...
^C

The API server no longer accepts that command line argument:

$ minikube ssh
$ docker logs 9f3405f5237a
Error: unknown flag: --Authorization.Mode
Usage:
  kube-apiserver [flags]

...
$ minikube version
minikube version: v0.26.1
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:34:11Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
@gojihotsauce
Copy link

I ran into this same issue after upgrading to v0.26.1.

This workaround fixed it for me: --extra-config=apiserver.authorization-mode=RBAC.

@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.

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 Aug 6, 2018
@jpiccaluga
Copy link

/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 Aug 28, 2018
@jpiccaluga
Copy link

This issue is still present in last release v28.2 . IS it possible to fix it?
Last working version was v25.2

@mukgupta
Copy link

mukgupta commented Sep 9, 2018

+1

@jpiccaluga
Copy link

In fact the flag --extra-config=apiserver.Authorization.Mode=RBAC is no longuer valide after version v25.2.
You must use --extra-config=apiserver.authorization-mode=RBAC instead of --extra-config=apiserver.Authorization.Mode=RBAC.

IMHO it would have been preferable to deprecated the old flag before to make it unusable.

@javajon
Copy link

javajon commented Sep 12, 2018

Yes, with v0.28.2 it will fail with the wrong key for the RBAC setting.

"E0912 14:25:08.682389 43508 start.go:300] Error starting cluster: kubeadm init error"

Value key must be lowercase with a dash, very important!

A subtle difference for those who are going too fast and do not notice this slight syntactic change. Older sites and blogs still have the old setting and can easily be copied to a recent version of Minikube and cause confusion.

@tstromberg tstromberg changed the title --extra-config=apiserver.authorization-mode=RBAC causes minikube start to hang --extra-config=apiserver.authorization-mode=RBAC causes minikube start to hang: unknown flag: --Authorization.Mode Sep 19, 2018
@tstromberg tstromberg added kind/bug Categorizes issue or PR as related to a bug. area/rbac co/kubelet Kubelet config issues labels Sep 19, 2018
benoitbayol added a commit to benoitbayol/seldon-core that referenced this issue Sep 24, 2018
kubernetes/minikube#2798 (comment) suggest a change of API for starting the minikube
@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.

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 Dec 18, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

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 rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 17, 2019
@tstromberg tstromberg added triage/obsolete Bugs that no longer occur in the latest stable release and removed area/rbac labels Jan 22, 2019
@tstromberg
Copy link
Contributor

Obsolete: documentation was updated, RBAC is default.

@tstromberg tstromberg added cause/apiserver-flags Bad flags passed to apiserver and removed co/kubelet Kubelet config issues lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause/apiserver-flags Bad flags passed to apiserver kind/bug Categorizes issue or PR as related to a bug. triage/obsolete Bugs that no longer occur in the latest stable release
Projects
None yet
Development

No branches or pull requests

8 participants