I am debugging remote kubernetes cluster pod using telepresence using this command:
telepresence --swap-deployment soa-illidan-service --expose 11014:11014
when I start java application with debug mode, the java application could successfully registered into eureka in kubernetes cluster, but the java application using local network ip like 192.168.X.X, how to make local Intellij Idea to using kubernetes cluster IP? then the cluster request could proxy forward to local Intellij Idea debbuging process. I also tried:
telepresence --swap-deployment soa-illidan-service --expose 11014:11014 --run java -Dfile.encoding=UTF-8 -Xmx256M -Xms128M -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=5019 -jar ~/Library/Mobile\ Documents/com~apple~CloudDocs/Document/source/dabai/microservice/soa-illidan/soa-illidan-service/build/libs/soa-illidan-service-1.0.0-SNAPSHOT.jar
also using localhost ip(192.168.X.X) to registry to remote kubernetes cluster, not using cluster ip(172.30.X.X).so remote pod could not forward request to local swap pod.