kubectl get serviceaccount
SafeService accounts
kubectl get sa [-n ns]
Lists/creates pod identities — RBAC hunts start with 'which SA is this pod running as?'.
Examples
kubectl get pod web-abc -o jsonpath='{.spec.serviceAccountName}'The pod's SA
Syntax
kubectl get sa / kubectl create sa <name>
Before you run it
Read only.
Related commands
- kubectl auth can-iCheck RBAC permissions
- kubectl describeDescribe resource/events
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store