ahmetb / kubectl-aliases

Programmatically generated handy kubectl aliases.
https://ahmet.im/blog/kubectl-aliases/
Apache License 2.0
3.4k stars 839 forks source link

Add commands to switch cluster/namespace context #61

Closed lapwat closed 2 years ago

lapwat commented 2 years ago

Handy commands I would like to have in the aliases are:

kubectl config set-context --current --namespace=NAMESPACE

k config use-context CONTEXT

ahmetb commented 2 years ago

you can install kubectx or kubens and set aliases for those in your shell.