2022-09-14 22:17:21 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: prometheus
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- nodes
|
2023-05-14 19:47:31 +00:00
|
|
|
- nodes/metrics
|
2022-09-14 22:17:21 +00:00
|
|
|
- services
|
|
|
|
- endpoints
|
|
|
|
- pods
|
2023-05-14 19:47:31 +00:00
|
|
|
verbs: ["get", "list","watch"]
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs: ["get"]
|
2022-09-14 22:17:21 +00:00
|
|
|
- apiGroups:
|
2023-05-14 19:47:31 +00:00
|
|
|
- networking.k8s.io
|
2022-09-14 22:17:21 +00:00
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs: ["get", "list", "watch"]
|
|
|
|
- nonResourceURLs: ["/metrics"]
|
|
|
|
verbs: ["get"]
|