← Learn
Safe
kubectl auth can-i --list --as=system:serviceaccount:default:default

cross-platform · yaml · Nightmare

Asks the API server what a given service account is permitted to do. The --as flag looks like impersonation, but this subcommand only evaluates policy and returns a table; you must already hold impersonation rights for it to answer at all.

Think you can spot these under time pressure?

Start Training

More Kubernetes