Created
April 24, 2020 15:23
-
-
Save otterley/c687486b9c447ad97914f388304eed36 to your computer and use it in GitHub Desktop.
This file contains 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 role binding allows "jane" to read pods in the "default" namespace. | |
# You need to already have a Role named "pod-reader" in that namespace. | |
kind: RoleBinding | |
metadata: | |
name: read-pods | |
namespace: default | |
subjects: | |
# You can specify more than one "subject" | |
- kind: User | |
name: jane # "name" is case sensitive | |
apiGroup: rbac.authorization.k8s.io | |
roleRef: | |
# "roleRef" specifies the binding to a Role / ClusterRole | |
kind: Role #this must be Role or ClusterRole | |
name: pod-reader # this must match the name of the Role or ClusterRole you wish to bind to | |
apiGroup: rbac.authorization.k8s.io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment