Skip to main content
In this lesson we explain how Telepresence handles volumes when you create an intercept, so a locally running process can access the same files a containerized process uses in the cluster. For more details, see the Telepresence documentation: https://www.telepresence.io/.
A blue-to-teal gradient slide with subtle diagonal shapes and the word "Volumes" centered in white text. A small "© Copyright KodeKloud" appears in the bottom-left corner.
When you intercept a service that uses a mounted volume, the process you run locally must be able to read from and/or write to that same volume data. Telepresence provides a way to expose the remote volume on your workstation using the --mount option so your local process sees the same filesystem contents as the container. How it works
  • Telepresence mounts the remote volume into a local mount point on your machine.
  • By default Telepresence chooses a temporary directory (for example /tmp/telfs-<random-number>).
  • You can request a specific local path by supplying --mount=<local-path>.
  • Mounts are visible in telepresence list for each active intercept.
CLI examples
  • Mount the remote volume to a specific local directory (e.g., /tmp/):
  • If you omit a path, you can enable mounting with a boolean-style flag (behavior depends on your Telepresence version). Telepresence then creates a temporary mountpoint for you, typically something like /tmp/telfs-1147625726.
Inspecting an intercept Run telepresence list to see details about active intercepts. The output includes a Volume Mount Point field showing the local mount location:
The Volume Mount Point is the path on your local filesystem that mirrors the remote volume. Accessing files there lets your locally running process read and write the same data used by the intercepted container. Quick reference
Mounting remote volumes exposes those files on your machine. Be careful with sensitive data, and avoid simultaneous conflicting writes from both the cluster process and your local process to prevent data corruption or integrity issues.
Links and references

Watch Video