An open API service indexing awesome lists of open source software.

https://github.com/robert076/namespace-alias

A kubernetes alias for quickly changing namespaces.
https://github.com/robert076/namespace-alias

aliases kubernetes kubernetes-namespace shell

Last synced: about 2 months ago
JSON representation

A kubernetes alias for quickly changing namespaces.

Awesome Lists containing this project

README

          

# 🌎 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
```bash
kubecontext mynamespace
```

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

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