gf-k8s/apps/system/grafana/templates/kubegraf-clusterrole.yaml
2020-06-20 20:36:06 +07:00

30 lines
642 B
YAML

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: grafana-kubegraf
rules:
- apiGroups: [""]
resources:
- namespaces
- pods
- services
- componentstatuses
- nodes
- events
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources:
- jobs
- cronjobs
verbs: ["get", "list", "watch"]
- apiGroups: ["extensions"]
resources:
- deployments
- daemonsets
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources:
- statefulsets
- deployments
- daemonsets
verbs: ["get", "list", "watch"]