- Home
- All questions
- Question 588
CKA study material · question 588 of 1000
A Role grants get and list on pods, but a user running kubectl logs is refused. What does the Role need?
Show the answer
Answer: C. pods/log added to the resources list
Logs are a subresource of Pod and are named in RBAC with a slash, so pods alone does not cover pods/log.
Source: Using RBAC Authorization (Kubernetes) — Referring to resources