Roles are limited to namespace, so before creating any role we need to create a namespace and then add user to the cluster and then define the role and use role binding to attach the role to the user.
Steps to create rbac in k8s:
**** Add User in Kubernetes Cluster ****
1. Create Name Space
kubectl create namespace development
2. Create private key and a CSR (Certificate Signing Request) for DevUser
**The common name (CN) of the subject will be used as username for authentication request. The organization field (O) will be used to indicate group membership of the user.
3. Provide CA keys of Kubernetes cluster to generate the certificate