Skip to content

Commit 3a29297

Browse files
Create clusterRole.yaml
1 parent c79e484 commit 3a29297

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

manifests/clusterRole.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: prometheus
5+
rules:
6+
- apiGroups: [""]
7+
resources:
8+
- nodes
9+
- nodes/proxy
10+
- services
11+
- endpoints
12+
- pods
13+
verbs: ["get", "list", "watch"]
14+
- apiGroups:
15+
- extensions
16+
resources:
17+
- ingresses
18+
verbs: ["get", "list", "watch"]
19+
- nonResourceURLs: ["/metrics"]
20+
verbs: ["get"]
21+
---
22+
apiVersion: rbac.authorization.k8s.io/v1
23+
kind: ClusterRoleBinding
24+
metadata:
25+
name: prometheus
26+
roleRef:
27+
apiGroup: rbac.authorization.k8s.io
28+
kind: ClusterRole
29+
name: prometheus
30+
subjects:
31+
- kind: ServiceAccount
32+
name: default
33+
namespace: monitoring

0 commit comments

Comments
 (0)