One minute
Adding the cluster admin role, to the developer user in Minishift
Introduction
On occasion, I have found the need to add the “cluster-admin” role to the developer user created within minishift. However, the majority of the time you aren’t able to easily login to minishift 3.11 remotely from “oc login -u system:admin”. To get around this, we can add the role by running a bash shell on the origin pod.
Firstly, we’ll connect to the Minishift VM via ssh:
$ minishift ssh
Next we’ll exec onto the origin container:
$ docker exec -it origin bash
And finally, we’ll add the role to our developer user:
oc --config=/var/lib/origin/openshift.local.config/master/admin.kubeconfig adm policy --as system:admin add-cluster-role-to-user cluster-admin developer
Simple!
104 Words
2020-01-20 00:00 +0000