<p>I have succesfully deployed a stream using spring dataflow in eks, but I need to debug an application of the stream.</p>
<p>I have set up <code>spring.cloud.deployer.kubernetes.environment-variables: JAVA_TOOL_OPTIONS='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000'</code> in the application I want to debug, and the application starts an it is listening on that port.</p>
<p>Is there any property to tell kubernetes to map this port and make it accessible?</p>
<p>Thank you.</p>

Juan
<p>Try this:</p>
<p><a href="https://i.stack.imgur.com/yWE7v.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yWE7v.jpg" alt="enter image description here" /></a></p>
<p>And then try a kubectl port-forward</p>
<pre><code>service/YOUR_SERVICE_NAME Host port:Service port 
</code></pre>
<p>The documentation is really complete btw, there's a lot of information here:</p>
<p><a href="https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/" rel="nofollow noreferrer">https://docs.spring.io/spring-cloud-dataflow/docs/current/reference/htmlsingle/</a></p>
