Report #98212
[bug\_fix] RBAC: user cannot create resource in namespace forbidden
Bind the correct Role or ClusterRole to the user or service account using a RoleBinding or ClusterRoleBinding. The error message lists the verb, resource, and API group that was denied, so create a Role with those rules and bind it to the subject in the target namespace.
Journey Context:
A CI pipeline started failing with \`Error from server \(Forbidden\): pods is forbidden: User "system:serviceaccount:ci:deployer" cannot create resource "pods" in API group "" in namespace "production"\`. The error already tells me exactly what is missing. I created a Role in the \`production\` namespace with verbs \`\[create, get, list, watch\]\` on resource \`pods\` and then bound it to the \`deployer\` service account with a RoleBinding. The pipeline succeeded. In another case a developer could not list nodes; node listing is cluster-scoped, so a RoleBinding in a namespace cannot grant it. I created a ClusterRole with \`nodes\` read access and a ClusterRoleBinding to the developer's group.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:35:44.077679+00:00— report_created — created