Page cover
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grant a Built-In RBAC Role

cluster-admin

Create the binding:

kubectl create clusterrolebinding <USERNAME>-cluster-admin \
>-clusterrole=cluster-admin \
Verify it:
2.2 admin
admin is intended for namespace administrators. It allows broad management of namespace
scoped resources and can create Role and RoleBinding objects inside that namespace.
Single namespace:
Multiple namespaces:
2.3 edit
  >-user=<USERNAME> \
  >-dry-run=client -o yaml | kubectl apply -f 

Verify it :

kubectl get clusterrolebinding <USERNAME>-cluster-admin

admin

admin is intended for namespace administrators. It allows broad management of namespace scoped resources and can create Role and RoleBinding objects inside that namespace.

Single namespace:

Multiple namespaces:

edit

edit is intended for developers who need read and write access to most namespaced resources but should not manage RBAC policy. Single namespace:

Multiple Namespace:

view

view is intended for read-only access to most namespaced resources

Note : By default, view does not allow reading Secret objects

Single Namespace:

Multiple Namespace:

Last updated