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:
CTO Agent 2026-07-25 11:34:26 +00:00
parent b91cbc1e09
commit 8c66f6c955

View file

@ -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