Skip to content

Instantly share code, notes, and snippets.

@guygrip
Created May 18, 2022 16:37
Show Gist options
  • Save guygrip/970df7ee606ebd01addb574203cf4b36 to your computer and use it in GitHub Desktop.
Save guygrip/970df7ee606ebd01addb574203cf4b36 to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.Kubernetes.io/v1
kind: ClusterRole
metadata:
# "namespace" omitted since ClusterRoles are not namespaced
name: secret-reader
rules:
- apiGroups: [""]
#
# at the HTTP level, the name of the resource for accessing Secret
# objects is "secrets"
resources: ["secrets"]
verbs: ["get", "watch", "list"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment