Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As of 12/19/2024 All newly created Rancher Folio environments have telepresence installed by default, thus every development team can remotely connect via IDE and debug all things.

...

if everything went OK, you’ll see something as below

...

Environment file:variables

Modules deployed in Eureka environment require more env vars to be present on module startup in Intellij . Please find when compared to the Okapi setup. When starting your module in Intellij make sure to extract the required environment variables (e.g. eureka-common, db-credentials and kafka-credentials) from your cluster into some .env file or individual env vars attached to Intellij run config.

...

Find and include additional env vars in your from the Rancher UI, these can be found under Storage > Secrets tab:

...

Or for the respective module you can determine which are required to be extracted and added into your local module environment variables, in Workloads > Pods > {{module_name}} > Config tab:

...

For example, for mod-orders we only require db-credentials and kafka-credentials to be extracted.

Also note that for Feign Client to work properly make sure to include this env var into your module environment:

...

sudo lsof -i :8002

sudo kill -9 <PID>

CleanupClean-up

Once your task is complete and interception no longer needed, please execute:

  • telepresence leave {{InterceptedSvcName}}

  • telepresence quit -s

If telepresence is failing to connect, please find all telepresence active\running process(es) on your system and stop them, then try to connect.

How to find active\running process(es) and terminate them:

...