Spring Boot Remote debug on K8s

ReZero Lv4

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.

  • Title: Spring Boot Remote debug on K8s
  • Author: ReZero
  • Created at : 2020-06-06 16:19:00
  • Updated at : 2025-05-26 05:53:22
  • Link: https://rezeros.github.io/2020/06/06/remote-debug-on-rancher/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
Spring Boot Remote debug on K8s