Search code examples
openshiftopenshift-originopenshift-client-tools

Openshift privileges cluster managment


Are there users with administrator privileges to handle cluster features (cluster management)?

How can I assign permissions to other users?

I would like to run the following command :

[root@localhost ~]# oc adm policy add-cluster-role-to-user admin vittorio

I get this error:

Error from server: User "system" cannot get clusterpolicybindings at the cluster scope


Solution

  • Use the bootstrap certificate based cluster admin user:

    export KUBECONFIG=/path/to/openshift.local.config/master/admin.kubeconfig
    oc whoami // should report system:admin