Install Telepresence on Your Machine

1
2
sudo curl -fL https://app.getambassador.io/download/tel2/linux/amd64/latest/telepresence -o /usr/local/bin/telepresence
sudo chmod a+x /usr/local/bin/telepresence

Install Telepresence in Your Cluster

1
telepresence helm install

try running kubectl get pods in the Ambassador namespace to see if the traffic manager is there?

1
kubectl get pods -n ambassador

Intercept Your Service

Connect to your cluster with telepresence connect and connect to the Kubernetes API server:

1
telepresence connect
1
curl -ik https://kubernetes.default

The 401 response is expected when you first connect.

Enter telepresence list and make sure the service you want to intercept is listed. For example:

1
telepresence list

Get the name of the port you want to intercept on your service: kubectl get service <service name> --output yaml.

1
kubectl get service example-service --output yaml

Intercept all traffic going to the service in your cluster:

1
telepresence intercept <service-name> --port <local-port>[:<remote-port>] --env-file <path-to-env-file>
1
telepresence intercept example-service --port 8080:http --env-file ~/example-service-intercept.env

vault

1
touch ~/.config/telepresence/vault-service-intercept.env
1
telepresence intercept vault --port 8200:http --env-file ~/.config/telepresence/vault-service-intercept.env