gke setting up kubernetes rbac for a user
To configure RBAC capabilities for a gke cluster, we need to enable this feature. This allow the user or principal to grant permission what he/she can do or cannot do in a cluster. gcloud projects add-iam-policy-binding project-id \ --member="user:kepung@gmail.com" \ --role="roles/viewer" And you can see this in the IAM portal :- Next, let's connect to our cluster and create our namespace. The we will create role and rolebinding using the following script: Creating namespace kubectl create namespace team-a Creating role.yaml # role-team-a-dev.yaml apiVersion : rbac.authorization.k8s.io/v1 kind : Role metadata : name : team-a-developer namespace : team-a rules : - apiGroups : [ "" ] resources : [ "pods" , "pods/log" ] verbs : [ "get" , "list" , "watch" , "create" , "update" , "delete" ] - apiGroups : [ "" ] resources : [ "services...