mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-11-20 19:07:17 +01:00
55 lines
905 B
YAML
55 lines
905 B
YAML
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: prometheus-operator
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- extensions
|
||
|
resources:
|
||
|
- thirdpartyresources
|
||
|
verbs:
|
||
|
- "*"
|
||
|
- apiGroups:
|
||
|
- apiextensions.k8s.io
|
||
|
resources:
|
||
|
- customresourcedefinitions
|
||
|
verbs:
|
||
|
- "*"
|
||
|
- apiGroups:
|
||
|
- monitoring.coreos.com
|
||
|
resources:
|
||
|
- alertmanagers
|
||
|
- prometheuses
|
||
|
- prometheuses/finalizers
|
||
|
- alertmanagers/finalizers
|
||
|
- servicemonitors
|
||
|
verbs:
|
||
|
- "*"
|
||
|
- apiGroups:
|
||
|
- apps
|
||
|
resources:
|
||
|
- statefulsets
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: [""]
|
||
|
resources:
|
||
|
- configmaps
|
||
|
- secrets
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: [""]
|
||
|
resources:
|
||
|
- pods
|
||
|
verbs: ["list", "delete"]
|
||
|
- apiGroups: [""]
|
||
|
resources:
|
||
|
- services
|
||
|
- endpoints
|
||
|
verbs: ["get", "create", "update"]
|
||
|
- apiGroups: [""]
|
||
|
resources:
|
||
|
- nodes
|
||
|
verbs: ["list", "watch"]
|
||
|
- apiGroups: [""]
|
||
|
resources:
|
||
|
- namespaces
|
||
|
verbs: ["list"]
|