Minikube 1.7.0 with OpenID and RBAC

In the article Kubernetes 1.6.1 Authentication via Google I explained how to create Google Application and generate kubernetes token. I found that people have problem and to help them to test OpenID token authorization I want to present Minikube solution. I assume this solution should remove problems with different host environments and networking issues.

I replaced Step 2 part in the article with minikube command, before you start please finish first Step 1 and Step 3.

Here is replacement of Step 2 and short version of Step 4:

$ minikube start \
--extra-config=apiserver.Authorization.Mode=RBAC \
--extra-config=apiserver.Authentication.OIDC.IssuerURL= \
--extra-config=apiserver.Authentication.OIDC.UsernameClaim=email \
$ kubectl get no
minikube Ready 8m v1.7.0
$ kubectl create clusterrolebinding cluster-admin-minikube --clusterrole=cluster-admin --user=""
$ kubectl get no --user=""

I found this approach easy to implement and good for testing applications on local environment with more close to production configurations and permissions.