Study. uk . com
  1. Home
  2. All questions
  3. Question 496

CKA study material · question 496 of 1000

Prometheus cannot scrape a component's /metrics endpoint under RBAC. What is needed?

  1. A ServiceAccount in kube-system
  2. The component's --bind-address set to 0.0.0.0
  3. A ClusterRole granting get on the nonResourceURL /metrics
  4. A Role granting get on the metrics resource
Show the answer

Answer: C. A ClusterRole granting get on the nonResourceURL /metrics

Reading metrics under RBAC requires a ClusterRole allowing get on the nonResourceURL /metrics.

Source: Metrics For Kubernetes System Components (Kubernetes) — Metrics in Kubernetes

Challenge yourself on this topic → Study as cards