- Home
- All questions
- Question 924
CKA study material · question 924 of 1000
You want to know whether the ServiceAccount build-bot in namespace ci may create Pods in namespace prod. Which command answers that?
Show the answer
Answer: A. kubectl auth can-i create pods --as=system:serviceaccount:ci:build-bot -n prod
auth can-i combined with --as answers the authorization question for another identity directly, rather than requiring the bindings to be read and reasoned about.
Source: kubectl auth can-i (Kubernetes) — Synopsis