Skip to content

Commit 2a4dfc9

Browse files
committed
chore: add deploy note for --forwarded-allow-ips
1 parent 42010bb commit 2a4dfc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manifests/base/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ spec:
2020
- "0.0.0.0"
2121
- --port
2222
- "8000"
23+
# When deploying behind proxies or in a service mesh (common in Kubernetes environments),
24+
# it is essential to set the `--forwarded-allow-ips` parameter (or the `FORWARDED_ALLOW_IPS` environment variable) correctly.
25+
# This setting should include the IP addresses of the load balancers (2 in my deployment environment) and the ingress pod's IP.
26+
# Since the ingress pod's IP can change, I use the cluster's pod CIDR range instead.
27+
# For more details, see: <https://www.uvicorn.org/settings/#http>
2328
envFrom:
2429
- configMapRef:
2530
name: chatbot

0 commit comments

Comments
 (0)