Skip to content

Instantly share code, notes, and snippets.

@a-patel
Created October 10, 2021 12:00
Show Gist options
  • Save a-patel/7c2e63f2da4d3a7ea6bc241f5eb9f530 to your computer and use it in GitHub Desktop.
Save a-patel/7c2e63f2da4d3a7ea6bc241f5eb9f530 to your computer and use it in GitHub Desktop.
Kubernetes - RBAC - Role
apiVersion: rbac.authorization.k8s.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