From 374ab6ff5f214f4dffb6761fdc1f09a2dc0e4dc2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 8 Oct 2018 09:55:55 -0700 Subject: [PATCH] website: note that env vars are set --- website/source/docs/platform/k8s/connect.html.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/source/docs/platform/k8s/connect.html.md b/website/source/docs/platform/k8s/connect.html.md index 7e746b620..fc00d5e70 100644 --- a/website/source/docs/platform/k8s/connect.html.md +++ b/website/source/docs/platform/k8s/connect.html.md @@ -113,11 +113,19 @@ port, the proxy establishes a connection to the target service ("static-server" in this example) using mutual TLS and identifying as the source service ("static-client" in this example). + +The injector will also set environment variables `_CONNECT_SERVICE_HOST` +and `_CONNECT_SERVICE_PORT` for every defined upstream. This is +analogous to the standard Kubernetes service environment variables, but +point instead to the correct local proxy port to establish connections via +Connect. + Any containers running in the pod that need to establish connections to dependencies must be reconfigured to use the local upstream address. This means pods should not use Kubernetes service DNS or environment variables for these connections. + We can verify access to the static text server using `kubectl exec`. Notice that we `curl` the local address and local port 1234 specified with our upstreams.