Skip to content

Instantly share code, notes, and snippets.

@guygrip
Created May 18, 2022 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guygrip/f42044ec56c552ccb0ceb39410c99a31 to your computer and use it in GitHub Desktop.
Save guygrip/f42044ec56c552ccb0ceb39410c99a31 to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.Kubernetes.io/v1
kind: Role
metadata:
namespace: default
name: pod-reader
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods"]
verbs: ["get", "watch", "list"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment