Interview Prep/Kubernetes/Rapid-Fire Commands

How do you test RBAC and impersonate another user or service account?

IntermediateProductionRapid-Fire Commands
Answer
kubectl auth can-i delete pods -n shop [email protected]
kubectl auth can-i '*' '*' --as=system:serviceaccount:shop:ci
kubectl get pods -n shop --as=system:serviceaccount:shop:ci
kubectl auth whoami
All Kubernetes questions

More on Rapid-Fire Commands