Skip to main content

kubectl alias

It's quite uncomfortable to type long kubectl, Helm command every time.
We can simplify this commands with alias.

We'll talk about kubectl for example in here.

Alias

If you want JUST kubectl alias...

Simple method at Windows. not normal actually

If you want alias just for kubectl only, just change .exe file to some name you want.
The simplest, but also the most crude way.

IF you want more aliases...

The method above is super simple, but you may not satisfy with it.
You may want more aliases, and especially the method for Windows is quite abnormal.

However, adding lots of aliases with manual is actually a hard work.
So there's a repository on Github that shares script to make various aliases.
Please find more information from repos below.

Alias for Linux
Alias for PowerShell