Skip to content

Commit

Permalink
Update RBAC settings for the metrics server
Browse files Browse the repository at this point in the history
What does this commit/MR/PR do?

- Update RBAC settings for the metrics server

Why is this commit/MR/PR needed?

- Due to a bug, output below

```
error while getting metrics summary from Kubelet
amd64-node-1(10.1.244.207:10250): request failed - "403 Forbidden",
response: "Forbidden
(user=system:serviceaccount:kube-system:metrics-server, verb=get,
resource=nodes, subresource=stats)"
```

- Ref issue
`kubernetes-sigs/metrics-server#77
  • Loading branch information
stephenmoloney committed Sep 8, 2018
1 parent 2d79b91 commit 9f71910
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/metrics-server-rbac.yaml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ rules:
- get - get
- list - list
- watch - watch
- apiGroups:
- ""
resources:
- nodes/stats
verbs:
- get
- create
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
Expand Down

0 comments on commit 9f71910

Please sign in to comment.