Skip to content

Commit 983ade6

Browse files
BennettJamesBennett Sala
andauthored
Adds documentation for adding environment variables to the envoy sidecar (#654)
Co-authored-by: Bennett Sala <[email protected]>
1 parent 94d0670 commit 983ade6

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

docs/reference/injector.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In order to use AWS App Mesh in Kubernetes, pods in the mesh must be running the AWS App Mesh sidecar proxy (Envoy).
44

5-
The following sections describe methods for injecting sidecar/Envoy into a pod for Virtual Nodes and Virtual Gateways
5+
The following sections describe methods for injecting sidecar/Envoy into a pod for Virtual Nodes and Virtual Gateways.
66

77
## Envoy injection for virtual nodes
88

@@ -171,3 +171,26 @@ spec:
171171
ports:
172172
- containerPort: 8088
173173
```
174+
175+
176+
## Custom Environment Variables For Envoy
177+
178+
Additional environment variables can be passed to the envoy sidecar container by
179+
adding an `appmesh.k8s.aws/sidecarEnv` annotation to the application's
180+
deployment:
181+
182+
```yaml
183+
apiVersion: apps/v1
184+
kind: Deployment
185+
metadata:
186+
name: ingress-gw
187+
namespace: ns
188+
spec:
189+
template:
190+
metadata:
191+
annotations:
192+
appmesh.k8s.aws/sidecarEnv: "CUSTOM_VAR=value1"
193+
```
194+
195+
Multiple variables can be set by passing a comma-delimited list -
196+
`appmesh.k8s.aws/sidecarEnv: "CUSTOM_VAR_1=a, CUSTOM_VAR_2=b"`.

0 commit comments

Comments
 (0)