Skip to content

Instantly share code, notes, and snippets.

@robscott
Created June 15, 2018 14:31
Show Gist options
  • Save robscott/ff9c46311dd4873021e9f69c0c997c4d to your computer and use it in GitHub Desktop.
Save robscott/ff9c46311dd4873021e9f69c0c997c4d to your computer and use it in GitHub Desktop.
Role Binding Examples
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