Role

A namespaced RBAC object listing which verbs are allowed on which resources inside one namespace.

In more detail

A Role grants nothing until a RoleBinding attaches it to a subject. Prefer namespaced Roles for namespaced work and keep the verbs and resources as narrow as the job allows.

Examples

rules:
  - apiGroups: [""]
    resources: ["pods"]
    verbs: ["get", "list"]
rules: [{apiGroups: [""], resources: ["pods"], verbs: ["get", "list"]}]

Related terms

Taught in

References

Certification courses