Skip to content

Instantly share code, notes, and snippets.

@guygrip
Created May 18, 2022
Embed
What would you like to do?
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