Hi, does anyone has an example of Deploy container configuration to set up remote debug for java application? Also is it possible to create multiple ingresses for different ports, for example myhost/path, myhost:5005/path as application needs to accept API requests on one port and debugger should work through another. I tried a workaround to add another ingress with another hostname for debugger but it returns an error
Unable to open debugger port (myhost:80): java.io.IOException "handshake failed - unrecognized message from target VM"
Configuration:
---
kind: Deploy
name: my-service
type: container
build: my-service
spec:
env:
JAVA_TOOL_OPTIONS: "-Xdebug -agentlib:jdwp=transport=dt_socket,address=*:5005,server=y,suspend=n"
ports:
- name: http
protocol: TCP
containerPort: 9306
servicePort: 9306
localPort: 9306
- name: debug
containerPort: 5005
servicePort: 5006
localPort: 5006
ingresses:
- port: http
hostname: myhost
path: /path
- port: debug
hostname: debug.myhost