Skip to content

Commit 1654396

Browse files
committed
fixed help
1 parent 93a5f05 commit 1654396

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed
Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
Simple Log Utility to fetch/copy Logs from CBCD components from deployed namespaces.
2-
Pre-Requisite:
3-
kubectl installed and configured.
41

2+
# Simple Log Utility to fetch/copy Logs for CBCD components from deployed kubernetes/openshift namespaces.
53

6-
➜ logs git:(master) ✗ ./get-logs.sh -help
4+
## Prerequisite:
5+
1. CBCD/SDA deployed on kubernetes platform.
6+
2. Install kubectl https://kubernetes.io/docs/tasks/tools/
7+
8+
9+
## How it works
10+
11+
$> bash get-logs.sh -help
712

813
Usage:
914
-n Namespace: The name of the kubernetes namespace/project where CBCD/SDA is deployed
@@ -12,8 +17,8 @@ Pre-Requisite:
1217
-o (Optional)Output path to copy logs. default is /tmp.
1318
-k (Optional)Kubeconfig file path to connect to k8s cluster.
1419

15-
Examples:
16-
./get-logs.sh -n flow-demo
17-
./get-logs.sh -n flow-demo -c all -o /tmp/flow-logs
18-
./get-logs.sh -n flow-demo -c flow-server -o /tmp/flow-logs
19-
./get-logs.sh -n flow-demo -c flow-server -k /home/foo/kubeconfigfile
20+
## Examples:
21+
./get-logs.sh -n <namespace> -c <Component> -o <output-path> -k <kube-config path>
22+
./get-logs.sh -n flow-demo -c all -o /tmp/flow-logs
23+
./get-logs.sh -n flow-demo -c flow-server -o /tmp/flow-logs
24+
./get-logs.sh -n flow-demo -c flow-server -k /home/foo/kubeconfigfile

cloudbees-cd/kubernetes/logs/get-logs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ function usage
5858
cat <<EOF
5959
6060
Usage:
61+
./get-logs.sh -n <Namespace> -c <Component> -o <Output> -k <kubeconfig-file-path>
62+
63+
Options:
6164
-n Namespace: The name of the kubernetes namespace/project where CBCD/SDA is deployed
6265
-c (Optional) Component: The name of component to fetch logs. defaults to all
6366
all, flow-server, flow-web, flow-devopsinsight, flow-bound-agent, flow-agent
6467
-o (Optional)Output path to copy logs. default is /tmp.
65-
-k (Optional)Kubeconfig file path to connect to k8s cluster.
68+
-k (Optional)kubeconfig file path to connect to k8s cluster.
6669
6770
Examples:
6871
./get-logs.sh -n flow-demo

0 commit comments

Comments
 (0)