Docsright arrowTelepresenceright arrow2.14right arrowTelepresence with Pod Daemon

4 min • read

Telepresence with Pod Daemon

The Pod Daemon facilitates the execution of Telepresence by using a Pod as a sidecar to your application. This becomes particularly beneficial when intending to incorporate Deployment Previews into your pipeline. Essentially, the pod-daemon is a Telepresence instance running in a pod, rather than operating on a developer's laptop.

This presents a compelling solution for developers who wish to share a live iteration of their work within the organization. A preview URL can be produced, which links directly to the image created during the Continuous Integration (CI) process. This Preview URL can then be appended to the pull request, streamlining the code review process and enabling real-time project sharing within the team.

Overview

The Pod Daemon functions as an optimized version of Telepresence, undertaking all preliminary configuration tasks (such as login and daemon startup), and additionally executing the intercept.

The initial setup phase involves deploying a service account with the necessary minimal permissions for running Telepresence, coupled with a secret that holds the API KEY essential for executing a Telepresence login.

Following this setup, your main responsibility consists of deploying your operational application, which incorporates a pod daemon operating as a sidecar. The parameters for the pod daemon require the relevant details concerning your live application. As it initiates, the pod daemon will intercept your live application and divert traffic towards your working application. This traffic redirection is based on your configured headers, which come into play each time the application is accessed.

Usage

To commence the setup, it's necessary to deploy both a service account and a secret. Here's how to go about it:

  1. Establish a connection to your cluster and proceed to deploy this within the namespace of your live application (default in this case).

  2. Following this, you will need to deploy the iteration image together with the pod daemon, serving as a sidecar. In order to utilize the pod-daemon command, the environmental variable IS_POD_DAEMON must be set to True. This setting is a prerequisite for activating the pod-daemon functionality.

  3. The preview URL can be located within the logs of the pod daemon:

ON THIS PAGE