Intercept a service
You can quickly intercept traffic destined to a workload in your cluster so that it is sent to your workstation instead.
Install Telepresence and log in
Follow these instructions to install the latest version of Telepresence and make sure to login by running the following command:
$ telepresence login
Intercept from the Connected view
Start your local instance of the service
Once you have logged in, you should see an indicator in the top bar telling you that your computer is connected. Click on "Connected (x/x)", hover your computer name and click the "Intercept" button.
In the slideout that opens, you'll see the list of services available to intercept based on the selected Namespace filter.
Click on the service you want to intercept
Intercept from the main Service Catalog view
- Start your local instance of the service
- Click on the service you want to intercept to go into the Service Details view
- Choose a cell and click the intercept button
- Fill out the form to complete the intercept.
Intercept from the Service Details view
- Start your local instance of the service
- Go to the
Intercept
tab - Click the
New Intercept
button - Fill out the form to complete the intercept.
Fill out the form to complete the intercept
Select the port from your service that you want to intercept
Select which port on your computer where requests should be sent to
Optionally, update the advanced settings that define how requests from generated preview url should be sent to you cluster:
- In the "INGRESS IP ADDRESS/DNS NAME + PORT NUMBER" field, enter the address and port of a LoadBalancer service in your cluster
- Select whether the LoadBalancer service port uses TLS
- Specify the
Host
header that should be passed along with the request. If you have a Mapping that routes requests to your services based a specific hostname, this is the value you should specify here
Click
Intercept