Add metrics.k8s.io permissions to Dozzle ClusterRole
Dozzle pod was crashing with: pods.metrics.k8s.io is forbidden: User "system:serviceaccount:dozzle:dozzle" cannot list resource "pods" in API group "metrics.k8s.io" at the cluster scope Added permission for the metrics.k8s.io API group to allow Dozzle to collect pod metrics for its monitoring dashboard. Fixes: DEV-372 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
b91cbc1e09
commit
8c66f6c955
1 changed files with 7 additions and 0 deletions
|
|
@ -33,6 +33,13 @@ rules:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- metrics.k8s.io
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: ClusterRoleBinding
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue