kubectx: kubectx is a utility to manage and switch between kubectl contexts.
https://github.com/ahmetb/kubectx| Installer Source| Releases (json) (tab)
kubectx: kubectx is a utility to manage and switch between kubectl contexts.
https://github.com/ahmetb/kubectx| Installer Source| Releases (json) (tab)
To update or switch versions, run webi kubectx@stable
(or @v0.9
, @beta
,
etc).
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.local/bin/kubectx
kubectx
kubectx helps you switch between Kubernetes clusters back and forth
To run kubectx:
kubectx
USAGE:
kubectx : list the contexts
kubectx <NAME> : switch to context <NAME>
kubectx - : switch to the previous context
kubectx -c, --current : show the current context name
kubectx <NEW_NAME>=<NAME> : rename context <NAME> to <NEW_NAME>
kubectx <NEW_NAME>=. : rename current-context to <NEW_NAME>
kubectx -d <NAME> : delete context <NAME> ('.' for current-context)
(this command won't delete the user/cluster entry
that is used by the context)
kubectx -u, --unset : unset the current context