Created
February 16, 2021 13:37
-
-
Save paoloyx/e6781783c45d90f29118d93d458e1130 to your computer and use it in GitHub Desktop.
Get an overview of all the (Cluster)RoleBindings and the ServiceAccount(s) they reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get rolebindings,clusterrolebindings \ | |
--all-namespaces \ | |
-o custom-columns='KIND:kind,NAMESPACE:metadata.namespace,NAME:metadata.name,SERVICE_ACCOUNTS:subjects[?(@.kind=="ServiceAccount")].name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taken from: kubernetes/kubernetes#53248 (comment)