Is it possible to deploy and debug Java application in GKE cluster from Eclipse using JKube?

123 Views Asked by At

Using Eclipse JKube (https://www.eclipse.org/jkube/) ,is it possible to deploy Java application to GKE cluster from the Eclipse IDE itself and perform remote debug ? I can see some post on Openshift deployment (https://developers.redhat.com/articles/2022/04/13/deploy-java-application-red-hat-openshift-using-jkube#how_jkube_helps_build_and_deploy_java_applications ) but not for Azure,AWS or GCP. .

1

There are 1 best solutions below

0
On

You can try the following:

  1. adding the debug port as a port you want to expose in jkube
  2. make sure the entrypoint contains the java command with your debug config

Applying this should create a container which has an additional port for your debugger to connect to and a command that starts the app in debug

  1. connect to your kubernetes cluster with e.g. k9s and forward the remote debug port
  2. configure your debugger
  3. run the app in debug