mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-09 20:38:53 +00:00
Install option as a kubectl plugin (#182)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
26
README.md
26
README.md
@@ -7,6 +7,7 @@
|
||||
|
||||
|
||||
This repository provides both `kubectx` and `kubens` tools.
|
||||
[Install →](#installation)
|
||||
|
||||
|
||||
**`kubectx`** helps you switch between clusters back and forth:
|
||||
@@ -85,6 +86,31 @@ Active namespace is "default".
|
||||
|
||||
## Installation
|
||||
|
||||
There are several installation options:
|
||||
|
||||
- As kubectl plugins (macOS/Linux)
|
||||
- macOS
|
||||
- Homebrew (recommended)
|
||||
- MacPorts
|
||||
- Linux
|
||||
- manual installation/upgrades
|
||||
- Arch Linux
|
||||
- Debian/Ubuntu
|
||||
|
||||
### Kubectl Plugins (macOS and Linux)
|
||||
|
||||
You can install and use [Krew](https://github.com/kubernetes-sigs/krew/) kubectl
|
||||
plugin manager to get `kubectx` and `kubens`. **NOTE:** This will not install
|
||||
shell completion scripts, if you want those, choose another installation method
|
||||
below.
|
||||
|
||||
```sh
|
||||
kubectl krew install ctx
|
||||
kubectl krew install ns
|
||||
```
|
||||
|
||||
After installing, the tools will be available as `kubectl ctx` and `kubectl ns`.
|
||||
|
||||
### macOS
|
||||
|
||||
#### Homebrew
|
||||
|
Reference in New Issue
Block a user