Skip to content

Commit 200a3e5

Browse files
authored
Merge pull request kubernetes-sigs#149 from astefanutti/PR-90
Add aggregated ClusterRole to grant read permissions for metrics API …
2 parents a57c29f + 9b847a8 commit 200a3e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
kind: ClusterRole
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
metadata:
4+
name: system:aggregated-metrics-reader
5+
labels:
6+
rbac.authorization.k8s.io/aggregate-to-view: "true"
7+
rbac.authorization.k8s.io/aggregate-to-edit: "true"
8+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
9+
rules:
10+
- apiGroups: ["metrics.k8s.io"]
11+
resources: ["pods"]
12+
verbs: ["get", "list", "watch"]

0 commit comments

Comments
 (0)