← All notes

Kubernetes RBAC

Answer: Permissions are purely additive: there are no deny rules.

Four objects

| Object | Scope | |---|---| | Role | one namespace | | ClusterRole | cluster-wide (non-namespaced) | | RoleBinding | grants within one namespace | | ClusterRoleBinding | grants cluster-wide |

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata: {namespace: dev, name: pod-reader}
rules:
- apiGroups: [""]
  resources: [pods]
  verbs: [get, list, watch]

Good practices

Check access

kubectl auth can-i list pods --as=system:serviceaccount:dev:app -n dev

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes Authors, Using RBAC Authorization, CC BY 4.0 (kubernetes/website); Kubernetes Authors, Role Based Access Control Good Practices, CC BY 4.0 (kubernetes/website).

Cite this

Permanent ID: iil:note:mv0m1bjn

iinventedlight. 2026. "Kubernetes RBAC." iinventedlight Library, iil:note:mv0m1bjn, version of 2026-11-04. https://iinventedlight.com/library/notes/kubernetes-rbac/. License: CC-BY-4.0.

@misc{iil_note_mv0m1bjn,
  author = {{iinventedlight}},
  title = {{Kubernetes RBAC}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/kubernetes-rbac/},
  note = {Permanent ID iil:note:mv0m1bjn. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/kubernetes-rbac.md.