Interview Prep/Kubernetes/Security: RBAC, ServiceAccounts & Pod Security

What is RBAC in Kubernetes?

BeginnerConceptSecurity: RBAC, ServiceAccounts & Pod Security
Answer

Role-based access control authorizes API requests with four objects: Role and ClusterRole (sets of verbs on resources) and RoleBinding and ClusterRoleBinding (grant them to users, groups or ServiceAccounts). Permissions are purely additive; there are no deny rules.

kubectl create role pod-reader --verb=get,list,watch --resource=pods -n dev
kubectl create rolebinding rb --role=pod-reader --user=alice -n dev
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security: RBAC, ServiceAccounts & Pod Security