Skip to content

Robert076/namespace-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌎 namespace-alias

A kubernetes alias for switching between namespaces.

πŸš€ Setup:

  1. Copy the function inside alias.sh
  2. Append it to your ~/.zshrc (use vim ~/.zshrc)
  3. Apply the content of zshrc (use source ~/.zshrc)

🌐 Usage

kubecontext mynamespace

Output: Context "kind-kind" modified. (I am using kind cluster)

If you want an even shorter version, add an alias in your file to call this function: alias kc='kubecontext'

About

A kubernetes alias for quickly changing namespaces.

Topics

Resources

Stars

Watchers

Forks

Languages