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
+3-1
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,7 @@ Options:
136
136
-n, --namespace <ns> Namespace for jump pod
137
137
--context <context> Kubernetes context
138
138
--pod-template <file> Path to custom sshjump pod definition
139
+
-l, --labels <key>=<val>[,...] Find a pre-existing sshjump pod using labels
139
140
--skip-agent Skip automatically starting SSH agent and adding
140
141
SSH Identity key into the agent before SSH login
141
142
(=> You need to manage SSH agent by yourself)
@@ -177,7 +178,8 @@ In addtion, add `--skip-agent` option if you want to skip automatic starting `ss
177
178
### Customize SSH jump pod
178
179
179
180
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.
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.
181
+
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 without the required flags.
182
+
If you change the pod name, you must give the pod a unique set of labels and provide them on the command line by setting the `--labels` flag.
181
183
182
184
You can also specify the namespace and context used by `kubectl ssh-jump` by setting the `--namespace` and `--context` flags respectively.
0 commit comments