Kubernetes RBAC Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 3: Line 3:
* [[Kubernetes Operations#Subjects|Kubernetes Operations]]
* [[Kubernetes Operations#Subjects|Kubernetes Operations]]


=List Roles=
=List Cluster Roles=


  kubectl get clusterroles
  kubectl get clusterroles
=List Cluster Role Bindings=
kubectl get clusterrolebindings


=Get Details about a Specific Role=
=Get Details about a Specific Role=

Revision as of 21:59, 11 September 2019

Internal

List Cluster Roles

kubectl get clusterroles

List Cluster Role Bindings

kubectl get clusterrolebindings

Get Details about a Specific Role

kubectl -o yaml get clusterroles cluster-admin

Assigning a Cluster Role to a Service Account