Created
October 10, 2021 12:00
-
-
Save a-patel/61f9d851c9f370d47c3923883908eb9e to your computer and use it in GitHub Desktop.
Kubernetes - RBAC - ClusterRoleBinding
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
apiVersion: rbac.authorization.k8s.io/v1 | |
# This cluster role binding allows anyone in the "manager" group to read secrets in any namespace. | |
kind: ClusterRoleBinding | |
metadata: | |
name: read-secrets-global | |
subjects: | |
- kind: Group | |
name: manager # Name is case sensitive | |
apiGroup: rbac.authorization.k8s.io | |
roleRef: | |
kind: ClusterRole | |
name: secret-reader | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment