File tree Expand file tree Collapse file tree 4 files changed +31
-7
lines changed Expand file tree Collapse file tree 4 files changed +31
-7
lines changed Original file line number Diff line number Diff line change
1
+ ## Quick Start
2
+
3
+ ### Build mdbdebug
4
+
5
+ ``` bash
6
+ $ tools/mdbdebug/build.sh
7
+ ```
8
+
9
+ ### Run mdbdebug
10
+ Run mdbdebug controller to watch deployments in the current cluster:
11
+ ``` bash
12
+ bin/mdbdebug --context kind-kind --watch --deployPods
13
+ ```
14
+
15
+ Do not use ` --deployPods ` if you have large deployment in your cluster. Debugging pods are inefficient and eat ~ 0.5cpu each idle.
16
+
17
+ ### Attach to debugging pods
18
+
19
+ ``` bash
20
+ $ /bin/attach.sh
21
+ ```
22
+
23
+
24
+
25
+
26
+
Original file line number Diff line number Diff line change 4
4
5
5
set -Eeou pipefail
6
6
7
+ source scripts/dev/set_env_context.sh
8
+
7
9
if ! which fzf & > /dev/null ; then
8
10
echo " you need to install fzf:"
9
11
echo " brew install fzf"
Original file line number Diff line number Diff line change 2
2
3
3
set -Eeou pipefail
4
4
5
+ source scripts/dev/set_env_context.sh
6
+
5
7
script_name=$( readlink -f " ${BASH_SOURCE[0]} " )
6
8
script_dir=$( dirname " ${script_name} " )
7
9
@@ -18,7 +20,7 @@ GOOS=linux GOARCH=amd64 go build -o bin_linux ./...
18
20
echo " Copying mdbdebug from to ${PROJECT_DIR} /bin"
19
21
cp bin/mdbdebug " ${PROJECT_DIR} /bin"
20
22
21
- echo " Copying attach.sh and watch.sh to ${PROJECT_DIR} /bin"
23
+ echo " Copying attach.sh to ${PROJECT_DIR} /bin"
22
24
cp attach.sh " ${PROJECT_DIR} /bin"
23
25
24
26
popd > /dev/null
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments