Skip to content

Instantly share code, notes, and snippets.

@a-patel
Created October 10, 2021 12:00
Show Gist options
  • Save a-patel/61f9d851c9f370d47c3923883908eb9e to your computer and use it in GitHub Desktop.
Save a-patel/61f9d851c9f370d47c3923883908eb9e to your computer and use it in GitHub Desktop.
Kubernetes - RBAC - ClusterRoleBinding
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