Let’s create a group for our admin users:
oc adm groups new administrators
Add the users into the group:
oc adm groups add-users administrators john explicitworkload
Finally, grant the cluster-admin role to the group:
oc adm policy add-cluster-role-to-group cluster-admin soiadmins
oc adm policy add-cluster-role-to-user cluster-admin john
Also, for those who are new to OpenShift, and does not want to fiddle around SecurityContext. You can use the command below to unbound SCC on the SA account for the namespace.
oc adm policy add-scc-to-user anyuid -z default -n default
oc adm policy who-can use scc/anyuid
*Security Context defines privilege and access control settings for a Pod or Container. It allows for the configuration of security-sensitive aspects of the container runtime environment, ensuring that workloads operate within defined security boundaries and adhering to the principle of least privilege.