2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
2017-10-23 02:00:41 +02:00
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: prometheus
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- nodes
|
2018-05-14 08:49:45 +02:00
|
|
|
- nodes/metrics
|
2017-10-23 02:00:41 +02:00
|
|
|
- services
|
|
|
|
- endpoints
|
|
|
|
- pods
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- nonResourceURLs: ["/metrics"]
|
|
|
|
verbs: ["get"]
|