Skip to content

Instantly share code, notes, and snippets.

@geogdog
Last active May 31, 2021 13:43
Show Gist options
  • Save geogdog/7c06ba21164a9f8fbcb5018f86462676 to your computer and use it in GitHub Desktop.
Save geogdog/7c06ba21164a9f8fbcb5018f86462676 to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: popeye
rules:
- apiGroups:
- ""
resources:
- configmaps
- deployments
- endpoints
- namespaces
- nodes
- persistentvolumes
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
verbs:
- get
- list
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- statefulsets
- replicasets
verbs:
- get
- list
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
- roles
- rolebindings
verbs:
- get
- list
- apiGroups:
- metrics.k8s.io
resources:
- pods
- nodes
verbs:
- get
- list
- apiGroups:
- policy
resources:
- poddisruptionbudgets
- podsecuritypolicies
verbs:
- get
- list
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
- ingresses
verbs:
- get
- list
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- get
- list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment