Awesome Open Source
Awesome Open Source

kubectl-rolesum (ex-bindrole)

Summarize RBAC roles for the specified subject (ServiceAccount, User and Group).




krew is a package manager for k8s plugins. Please see krew document for more detail.

kubectl krew install rolesum

Homebrew (for MacOS)

rolesum supports homebrew 🍺

brew install Ladicle/kubectl-bindrole/kubectl-rolesum


The easiest way is to download binary from the release page. You can also download this repository and install it using Makefile.


$ kubectl rolesum -h  # or kubectl-rolesum -h
Summarize RBAC roles for the specified subject

  kubectl rolesum [options] <SubjectName>

  # Summarize roles bound to the "ci-bot" ServiceAccount.
  kubectl rolesum ci-bot

  # Summarize roles bound to the "developer" Group.
  kubectl rolesum -k Group developer

  - ServiceAccount (default)
  - User
  - Group

  -h, --help                   Display this help message
  -n, --namespace string       Change the namespace scope for this CLI request
  -k, --subject-kind string    Set SubjectKind to summarize (default: ServiceAccount)
  -o, --options                List of all options for this command
      --version                Show version for this command

Use "kubectl rolesum --options" for a list of all options (applies to this command).

This command supports both kubectl-plugin mode and standalone mode.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Go (196,482
Hacktoberfest (36,020
Kubernetes (11,508
Rbac (494
Related Projects