Created
June 15, 2018 14:31
-
-
Save robscott/ff9c46311dd4873021e9f69c0c997c4d to your computer and use it in GitHub Desktop.
Role Binding Examples
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
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: example | |
namespace: web | |
subjects: | |
- kind: User | |
name: A | |
apiGroup: rbac.authorization.k8s.io | |
roleRef: | |
kind: ClusterRole | |
name: edit | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: example | |
namespace: api | |
subjects: | |
- kind: User | |
name: A | |
apiGroup: rbac.authorization.k8s.io | |
roleRef: | |
kind: ClusterRole | |
name: edit | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment