I'm going over RBAC in Kubernetes. It appears to me that
- a ServiceAccount can be bound to a Role within a namespace (or)
- a ServiceAccount can be bound to a ClusterRole and have cluster-wide access (all namespaces?)
Is it possible for a single Service Account (or User) to not have cluster-wide access but only have read-only access in only a subset of namespaces? If so, can someone elaborate on how this can be achieved. Thanks!
RoleBindingfor the one service account for each namespace in which you wish it permitted.