[Verse 1] When you're working with your cluster every day Service accounts help applications find their way They're the identities that pods can use To access resources without getting the blues But finding them scattered can be quite a maze Let me teach you the command that always pays [Chorus] Get service accounts dash A That's the flag that shows the way Every namespace will display All the accounts in array kubectl get serviceaccounts Add the A to check all routes Never miss a single one List them all until you're done [Verse 2] In the default namespace you might see some But other namespaces have accounts that run The kube-system holds the system's core And your applications might be using more Without the dash A flag you'll only see The current namespace identity [Chorus] Get service accounts dash A That's the flag that shows the way Every namespace will display All the accounts in array kubectl get serviceaccounts Add the A to check all routes Never miss a single one List them all until you're done [Bridge] Each account has secrets bound Tokens that can be found Age and namespace clearly shown Every service account known From system pods to your apps too This command reveals them all to you [Verse 3] When debugging access issues late at night This command brings service accounts to light See which ones exist across your cloud Makes troubleshooting clear and loud Remember dash A for all namespaces wide Your cluster's service accounts can't hide [Chorus] Get service accounts dash A That's the flag that shows the way Every namespace will display All the accounts in array kubectl get serviceaccounts Add the A to check all routes Never miss a single one List them all until you're done [Outro] kubectl get serviceaccounts dash A Shows them all in grand display
← Bind a role to a user or service account | Create a service account →