Spring Boot Remote debug on K8s

ReZero lol

Basic Setting

  1. Append -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 to your JAVA_TOOL_OPTIONS enviroment variables.

  2. Set your contaier mapping policy as node port and mapping your container port 5005 to any host port.

  3. redeploy your app workload.

  4. 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
Contents