Skip to content

Commit

Permalink
docs/telepresence/faqs.md: 2.0.1 supports env-var forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Feb 9, 2021
1 parent e39a4ed commit 8ee0030
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions faqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,19 @@ If you need another protocol supported, please [drop us a line](../../../../feed

** When using Telepresence to intercept a pod, are the Kubernetes cluster environment variables proxied to my local machine?**

This feature is coming soon.

For the moment you can `kubectl exec` into a container running on the pod in order to explore the environment variables that are available.

If you are using Kubernetes 1.16+, you can also create an ephemeral container (an alpha feature) within a pod, and explore the volumes using this approach.
Yes, you have three options for getting the environment variables from
the cluster; when creating the intercept with `telepresence
intercept`, you can:

1. Use the `--env-file=FILENAME` flag to write the environment
variables to a [Docker Compose
env-file](https://docs.docker.com/compose/env-file/).
2. Use the `--env-json=FILENAME` flag to write the environment
variables to a JSON blob file.
3. Append a command to `telepresence intercept`, separating it from
the usual arguments with `--` (`telepresence intercept
YOURSERVICE -- <COMMAND>`) to run a command with the environment
variables set.

** When using Telepresence to intercept a pod, are the associated pod volume mounts also proxied and shared with my local machine?**

Expand Down

0 comments on commit 8ee0030

Please sign in to comment.