Skip to content

Instantly share code, notes, and snippets.

Created May 18, 2022 16:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save guygrip/db9461fef30d01e03b3992c472b4faae to your computer and use it in GitHub Desktop.
# 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
name: read-pods
namespace: default
# You can specify more than one "subject"
- kind: User
name: jane # "name" is case sensitive
# "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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment