Prerequisites
- A running Kubernetes cluster
telepresenceCLI installed (install guide)- A Deployment named
products-deplthat uses a volume
1. Intercept Without Volume Mount
By default, intercepting a service only redirects traffic—you won’t have access to the original volume on your local file system:2. Intercept With Volume Mount
If your container reads or writes data to a volume, add the--mount flag. Telepresence will mount the volume into a randomly generated directory on your host:
Customizing the Local Mount Point
To choose a specific directory on your machine, pass--mount=<path>:
When you specify a mount point, ensure the directory exists and you have write permissions.
Telepresence won’t create nested directories for you.
Telepresence won’t create nested directories for you.