You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,16 +125,18 @@ Options:
125
125
dest_node must start from the following letters:
126
126
ASCII letters 'a' through 'z' or 'A' through 'Z',
127
127
the digits '0' through '9', or hyphen ('-').
128
-
NOTE: Setting dest_node as 'jumphost' allows to
129
-
ssh into SSH jump Pod as 'root' user
128
+
NOTE: Setting dest_node as 'jumphost' allows to
129
+
ssh into SSH jump Pod as 'root' user
130
130
-u, --user <sshuser> SSH User name
131
131
-i, --identity <identity_file> Identity key file, or PEM(Privacy Enhanced Mail)
132
132
-p, --pubkey <pub_key_file> Public key file
133
133
-P, --port <port> SSH port for target node SSH server
134
134
Defaults to 22
135
135
-a, --args <args> Args to exec in ssh session
136
+
-n, --namespace <ns> Namespace for jump pod
137
+
--context <context> Kubernetes context
136
138
--pod-template <file> Path to custom sshjump pod definition
137
-
--skip-agent Skip automatically starting SSH agent and adding
139
+
--skip-agent Skip automatically starting SSH agent and adding
138
140
SSH Identity key into the agent before SSH login
139
141
(=> You need to manage SSH agent by yourself)
140
142
--cleanup-agent Clearning up SSH agent at the end
@@ -174,10 +176,11 @@ In addtion, add `--skip-agent` option if you want to skip automatic starting `ss
174
176
175
177
### Customize SSH jump pod
176
178
177
-
You can customize the sshjump pod created by `kubectl ssh-jump` by setting the `$SSH_JUMP_POD_TEMPLATE` environment variable to the path to a pod template on disk.
178
-
179
+
You can customize the sshjump pod created by `kubectl ssh-jump` by setting the `--pod-template` flag to the path to a pod template on disk.
179
180
However, customized sshjump pods must be named `sshjump` and run in the current namespace or `kubectl ssh-jump` won't be able to find them.
180
181
182
+
You can also specify the namespace and context used by `kubectl ssh-jump` by setting the `--namespace` and `--context` flags respectively.
183
+
181
184
### Examples
182
185
183
186
Show all node list. Simply executing `kubectl ssh-jump` gives you the list of destination nodes as well as command usage
0 commit comments