This repository contains the tools:
- creating and push image
docker build -t eu.gcr.io/cloud-native-coding/code-server-java-debug:3.4.1 . - execute
k apply -k .in folder...cnd…ejs/configto deploy
- execute
k open-svc myapp
This is a patched kubespy script. Repo see above...
- execute
./kubespy.sh myapp - open Chrome with
http://localhost:8080/?folder=/home/cnde/project - add extension
Java IDE Pack, reload browser window, go back to File View - wait for Java to setup, accept default Java Language Support
- switch to
Debugger Viewaddlaunch.json, add configurationJava attachand change Port to8000 - add breakpoint at
ProductAPI.javae.g. at line 22 - start debugger with
Java Attachselected - in terminal type
curl localhost:8888/api/v1/productsto check breakpoint
the above application has to be started and Wireshark has to be installed
-
create load
k run load --image=busybox -- /bin/sh -c "while true; do wget -O index.html http://myapp:8888/; sleep 1; done" -
start sniffing
k sniff load -n trainer -p --socket /var/run/docker.sock