Run any command in a specific namespace

Kubernetes Commands & Best Practices Curriculum · 3:52

Listen on 93

Lyrics

[Verse 1]
When you're working with your cluster and pods are scattered wide
Different namespaces hold them like rooms you need to find
The default view won't show you all the secrets that they keep
You need to specify the space where your applications sleep

[Chorus]
Dash N is the key, dash N sets you free
Point it to the namespace where your pods should be
Get pods dash N, then the name you choose
That's the magic formula you never want to lose
Dash N namespace, that's the way to go
See exactly what you need, and nothing you don't know

[Verse 2]
Production, staging, development, each has its own domain
Without the namespace flag, your search will be in vain
The kubectl command is waiting for that extra piece of info
Tell it where to look and watch your pod list start to flow

[Chorus]
Dash N is the key, dash N sets you free
Point it to the namespace where your pods should be
Get pods dash N, then the name you choose
That's the magic formula you never want to lose
Dash N namespace, that's the way to go
See exactly what you need, and nothing you don't know

[Bridge]
Kube-system, monitoring, whatever space you've made
Every namespace has its treasures waiting to be displayed
Don't forget the angle brackets mean you type your own
Replace that placeholder text with names you've grown to know

[Verse 3]
Now you're navigating clusters like a captain of the sea
Each namespace is an island with its own topology
The power is in your hands now, you control what you can see
With dash N and the name, you've unlocked the master key

[Final Chorus]
Dash N is the key, dash N sets you free
Point it to the namespace where your pods should be
Get pods dash N, then the name you choose
That's the magic formula you never want to lose
Dash N namespace, now you know the way
Navigate your clusters every single day

[Outro]
Remember dash N namespace
That's how you find your place

← List all namespaces | Get resources across ALL namespaces →