kubectl auth whoami

Category: Kubernetes & Containers

kubectl auth whoami

Show the current authenticated user

Reports the user and groups your kubeconfig credentials resolve to on the current cluster. Useful when the same kubeconfig file is shared across contexts. Combine with kubectl auth can-i create pods to test permissions.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.