Enable kubectl autocompletion

Kubernetes & Strimzi Administration · 2:22

Listen on 93

Lyrics

[Verse 1]
When you're typing kubectl commands all day long
Your fingers get tired, something feels wrong
There's a better way to work with your cluster
Tab completion will make your workflow much faster

[Chorus]
Source the completion, bash or zsh
Let kubectl help you, no need to stress
K alias setup, complete the line
Autocompletion saves you time
Tab tab tab, watch it appear
Every command crystal clear

[Verse 2]
Source from kubectl completion bash
Pipe it right in with a single dash
Or maybe you're running zsh instead
Same command works, just swap what's said

[Chorus]
Source the completion, bash or zsh
Let kubectl help you, no need to stress
K alias setup, complete the line
Autocompletion saves you time
Tab tab tab, watch it appear
Every command crystal clear

[Bridge]
Complete dash o default dash F
Underscore underscore start kubectl, don't forget
Map it to k for the shortcut you love
Now your terminal fits like a glove

[Verse 3]
Production workloads need speed and precision
Autocompletion supports your mission
Pod names and namespaces, flags and more
Tab completion opens up every door

[Chorus]
Source the completion, bash or zsh
Let kubectl help you, no need to stress
K alias setup, complete the line
Autocompletion saves you time
Tab tab tab, watch it appear
Every command crystal clear

[Outro]
Enable completion, make it stick
Your Kubernetes workflow will be so quick
Source and complete, remember these two
Autocompletion is there for you

← Generate YAML without creating (great for templates) | Get all resource types →