Skip to content

Instantly share code, notes, and snippets.

@zimmertr
Created September 26, 2019 03:56
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 zimmertr/eaff4e6ebe7010842f4c28637719be94 to your computer and use it in GitHub Desktop.
Save zimmertr/eaff4e6ebe7010842f4c28637719be94 to your computer and use it in GitHub Desktop.
$> kubectl get clusterrole grafana-prometheus-scraper -oyaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: "2019-09-26T03:55:58Z"
name: grafana-prometheus-scraper
resourceVersion: "6968371"
selfLink: /apis/rbac.authorization.k8s.io/v1/clusterroles/grafana-prometheus-scraper
uid: 03e86193-703f-426f-b3b4-61430596bb3b
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
- nodes
- pods
- services
- resourcequotas
- replicationcontrollers
- limitranges
- persistentvolumeclaims
- persistentvolumes
- namespaces
- endpoints
verbs:
- list
- watch
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- replicasets
- ingresses
verbs:
- list
- watch
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- list
- watch
- apiGroups:
- batch
resources:
- cronjobs
- jobs
verbs:
- list
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- list
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- list
- watch
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- list
- watch
- apiGroups:
- autoscaling.k8s.io
resources:
- verticalpodautoscalers
verbs:
- list
- watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment