Spring Boot Remote debug on K8s
Basic Setting
Append
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
to yourJAVA_TOOL_OPTIONS
enviroment variables.Set your contaier mapping policy as node port and mapping your container port 5005 to any host port.
redeploy your app workload.
new idea remote run config and change the port as the above host port.
- Post title:Spring Boot Remote debug on K8s
- Post author:ReZero
- Create time:2020-06-06 16:19:00
- Post link:https://rezeros.github.io/2020/06/06/remote-debug-on-rancher/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments