-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update description and parameter naming
- Loading branch information
Showing
2 changed files
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# kubespy is a non-invasive debugging tool for kubernetes | ||
# pod debugging tool for kubernetes with docker runtimes | ||
|
||
# Copyright © 2019 Hua Zhihao <[email protected]> | ||
# | ||
|
@@ -29,24 +29,23 @@ usage() { | |
fi | ||
|
||
cat <<EOF | ||
Load common system tools into a particular running pod for debugging | ||
kubespy is a debugging tool for kubernetes with docker runtimes | ||
Usage: | ||
$SELF POD [-c CONTAINER] [--ephemeral SPY_IMAGE] | ||
$SELF POD [-c CONTAINER] [--spy-image SPY_IMAGE] | ||
Examples: | ||
# spy the first container nginx from mypod | ||
# debug the first container nginx from mypod | ||
$SELF mypod | ||
# sspy container nginx from mypod | ||
# debug container nginx from mypod | ||
$SELF mypod -c nginx | ||
# spy container nginx from mypod using busybox | ||
$SELF mypod -c nginx --ephemeral busybox | ||
# debug container nginx from mypod using busybox | ||
$SELF mypod -c nginx --spy-image busybox | ||
See https://github.com/huazhihao/kubespy for more details. | ||
EOF | ||
} | ||
|
||
|
@@ -69,7 +68,7 @@ main() { | |
shift | ||
shift | ||
;; | ||
--ephemeral) | ||
--spy-image) | ||
ep="$2" | ||
shift | ||
shift | ||
|