We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--forwarded-allow-ips
1 parent 42010bb commit 2a4dfc9Copy full SHA for 2a4dfc9
manifests/base/deployment.yaml
@@ -20,6 +20,11 @@ spec:
20
- "0.0.0.0"
21
- --port
22
- "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>
28
envFrom:
29
- configMapRef:
30
name: chatbot
0 commit comments