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