blob: 4f9877203fd8312e82ba182f5763ae8e1b9c1c36 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001---
2apiVersion: rbac.authorization.k8s.io/v1
3kind: ClusterRole
4metadata:
5 name: system:metrics-server
6rules:
7- apiGroups:
8 - ""
9 resources:
10 - pods
11 - nodes
12 - nodes/stats
13 verbs:
14 - get
15 - list
16 - watch
17---
18apiVersion: rbac.authorization.k8s.io/v1
19kind: ClusterRoleBinding
20metadata:
21 name: system:metrics-server
22roleRef:
23 apiGroup: rbac.authorization.k8s.io
24 kind: ClusterRole
25 name: system:metrics-server
26subjects:
27- kind: ServiceAccount
28 name: metrics-server
29 namespace: kube-system