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 44
55set -Eeou pipefail
66
7+ source scripts/dev/set_env_context.sh
8+
79if ! which fzf & > /dev/null ; then
810 echo " you need to install fzf:"
911 echo " brew install fzf"
Original file line number Diff line number Diff line change 22
33set -Eeou pipefail
44
5+ source scripts/dev/set_env_context.sh
6+
57script_name=$( readlink -f " ${BASH_SOURCE[0]} " )
68script_dir=$( dirname " ${script_name} " )
79
@@ -18,7 +20,7 @@ GOOS=linux GOARCH=amd64 go build -o bin_linux ./...
1820echo " Copying mdbdebug from to ${PROJECT_DIR} /bin"
1921cp bin/mdbdebug " ${PROJECT_DIR} /bin"
2022
21- echo " Copying attach.sh and watch.sh to ${PROJECT_DIR} /bin"
23+ echo " Copying attach.sh to ${PROJECT_DIR} /bin"
2224cp attach.sh " ${PROJECT_DIR} /bin"
2325
2426popd > /dev/null
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments