Kubernetes
RBAC
rule verbs
cloud computing
container orchestration

Kubernetes RBAC verbs list

Codemia Knowledge Hub ·

The main Kubernetes RBAC verbs are get, list, watch, create, update, patch, delete, deletecollection and impersonate. Each one names an action a subject may perform on the resources listed in a rule.

Where verbs fit in an RBAC rule

RBAC controls how users, applications and processes interact with the Kubernetes API server. A Role contains rules made of verbs, resources, resource names and namespaces. A RoleBinding assigns the Role to users or groups, so only authorized subjects can perform the listed actions.

The RBAC verbs

get

Retrieves a specific resource, such as a Pod, Service or ConfigMap. A subject with this permission can run kubectl get <resource> to view its details.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["get"]

list

Retrieves all resources of a type. With this access, kubectl get <resource> works with or without additional filters.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["list"]

watch

Monitors changes to resources, so you can observe their state over time without repeated polling.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["watch"]

create

Creates new resources in the cluster, such as deploying a new Pod or Service.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["create"]

update

Modifies existing resources, for example changing configuration or updating Secrets and ConfigMaps.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["update"]

patch

Applies partial updates. Unlike update, patch can modify only a subset of a resource's fields.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["patch"]

delete

Removes resources from the cluster. Grant it carefully, since it affects resource availability.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["delete"]

deletecollection

An extension of delete that removes a collection of resources at once, typically selected by label.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["pods"]
4  verbs: ["deletecollection"]

impersonate

Lets a user act as another user. It is used for debugging and operational work and should be tightly controlled.

yaml
1rules:
2- apiGroups: [""]
3  resources: ["users"]
4  verbs: ["impersonate"]

Verb reference table

VerbDescription
getRetrieve a specific resource's information.
listList all resources of a particular type.
watchObserve changes of resources over time.
createAdd new resources to the cluster.
updateModify existing resources completely.
patchPartially modify existing resources.
deleteRemove resources.
deletecollectionRemove a collection of resources.
impersonateAct as another user for access control purposes.

Follow the principle of least privilege: grant only the verbs a user or service needs to do its job.


Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design