Skip to main content
Version: 2.19

Intercept

expects to have exactly one of the following classes attached to it: 'mode-regular', 'mode-global', or 'mode-personal'. -->

Intercepts replace the Kubernetes "Orders" service with the Orders service running on your laptop. The users see no change, but with all the traffic coming to your laptop, you can observe and debug with all your dev tools.

Creating and using intercepts​

  1. Creating the intercept: Intercept your service from your CLI:

    telepresence intercept SERVICENAME
    info

    Make sure your current kubectl context points to the target cluster. If your service is running in a different namespace than your current active context, use or change the --namespace flag.

  2. Using the intercept: Send requests to your service:

    All requests will be sent to the version of your service that is running in the local development environment.