The Telepresence plugin allows you to create your intercepts using a GUI, and integrate it with your workflow.
You need to have the Telepresence command line installed on your machine. If that's not the case, please proceed first.
You can install the plugin directly from the Jetbrains marketplace, or from your IDE menu in Settings > Plugins.
Look for Telepresence, and click Install.
Start by opening the Telepresence tool menu:
Then you can select the context / namespace you want to connect to, and connect by using a right click:
If Telepresence wasn't running, it will open a terminal asking for your password.
Telepresence is also integrated with the Runner function of the IDE.
To properly run in your cluster context, your code needs to be populated with the environment variables & volumes in use in the cluster. To achieve that, the plugin adds a tab in your language's runner to select the intercept to extract the environment variables from.
- Tick the checkbox to enable it, and specify the name of the intercept to use as a source.
- Start the runner, and the environment variables used by the real pod in your cluster should be available to your program.
If the plugin can't find your command line installation path, you can define another one in the IDE settings. Look for Telepresence, and select the binary you want to use.
Then click apply to save your changes.