Posts tagged with : openshift

featured image

Openshift Cheat Sheet

I find myself losing time always looking for some Openshift commands that I stumbled upon once in the documentation. This page is just a reminder of these commands : List all cluster-admins of your cluster % oc get clusterrolebindings -o json | jq '.items[] | select(.metadata.name=="cluster-admins") | .userNames' Add the admin role to some user of an project % oc adm policy add-role-to-user admin userX -n project-Y Binds a given role to specified users for all projects in the cluster.