Skip to content

Commit 37aaab4

Browse files
author
Yoichi Kawasaki
committed
Added install option with krew
1 parent b701236 commit 37aaab4

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,40 @@ This plugin needs the following programs:
2323

2424
## Installation
2525

26+
### Install through krew
27+
This is a way to install kubectl-ssh-jump through [krew](https://github.com/GoogleContainerTools/krew). After installing krew by following [this](https://github.com/GoogleContainerTools/krew#installation), you can install kubectl-ssh-jump like this:
28+
29+
```sh
30+
$ kubectl krew install ssh-jump
31+
```
32+
33+
Expected output would be like this:
34+
```
35+
Updated the local copy of plugin index.
36+
Installing plugin: ssh-jump
37+
CAVEATS:
38+
\
39+
| This plugin needs the following programs:
40+
| * ssh(1)
41+
| * ssh-agent(1)
42+
|
43+
| Please follow the documentation: https://github.com/yokawasa/kubectl-plugin-ssh-jump
44+
/
45+
Installed plugin: ssh-jump
46+
```
47+
48+
Once it's installed, run:
49+
```sh
50+
$ kubectl plugin list
51+
52+
The following kubectl-compatible plugins are available:
53+
54+
/Users/yoichika/.krew/bin/kubectl-krew
55+
/Users/yoichika/.krew/bin/kubectl-ssh_jump
56+
57+
$ kubectl ssh-jump
58+
```
59+
2660
### Manual Installation
2761

2862
Install the plugin by copying the script in the $PATH of your shell.

0 commit comments

Comments
 (0)