-
Notifications
You must be signed in to change notification settings - Fork 2
/
help.txt
25 lines (21 loc) · 986 Bytes
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Interacting with a K8s pod (showing logs, executing a command, or starting a shell session)
The missing option will be interactively entered with fuzzy search.
Usage:
./klg.sh [options] Getting logs of a k8s pod
./ke.sh [options] Execute a command inside a k8s pod
./ksh.sh [options] Running shell of a k8s pod
Options:
-h : Show help
-n: Keyword to fuzzy search for k8s namespace. Ignored when -N is specified.
-p: Keyword to fuzzy search for k8s pod. Ignored when -P is specified.
-c: Keyword to fuzzy search for container. Ignored when -C is specified.
-N: Exact namespace (no searching)
-P: Exact pod name (no searching)
-C: Exact container name (no searching)
Example:
./klg.sh
./klg.sh -n my-nsp
./klg.sh -n my-namespace -p my-pod -c my-container
K8S_DEFAULT_NS=default ./klg.sh -p mypd -c myctn
./ksh.sh -n my-nsp -p my-pod -c my-container
./ke.sh -n my-nsp -p my-pod -- my-command the arg list