Difference between revisions of "Kubectx"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* https://github.com/ahmetb/kubectx | * https://github.com/ahmetb/kubectx | ||
− | + | * MacOS: <code>[[brew install kubectx]]</code> | |
+ | * Windows: <code>[[choco install kubens kubectx]]</code> | ||
+ | |||
+ | |||
kubectx | kubectx | ||
Revision as of 15:27, 25 November 2022
kubectx
tool to manage K8s contexts
- MacOS:
brew install kubectx
- Windows:
choco install kubens kubectx
kubectx
kubectx cluster_name_to_switch Switched to context "cluster_name_to_switch".
kubectx YOUR_NEW_NAME=YOUR_OLD_NAME Context "arn:aws:eks:eu-central-1:123123414:cluster/your-ugly-name" renamed to "YOUR_NEW_NAME".
Help
kubectx --help 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> [<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
kubectx -h,--help : show this message
Related
See also
Advertising: