Skip to content

Commit 3fd02bd

Browse files
authored
[doc][misc] add note for Kubernetes users (#5916)
1 parent 98cf2ed commit 3fd02bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/serving/env_vars.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ vLLM uses the following environment variables to configure the system:
66
.. warning::
77
Please note that ``VLLM_PORT`` and ``VLLM_HOST_IP`` set the port and ip for vLLM's **internal usage**. It is not the port and ip for the API server. If you use ``--host $VLLM_HOST_IP`` and ``--port $VLLM_PORT`` to start the API server, it will not work.
88

9+
All environment variables used by vLLM are prefixed with ``VLLM_``. **Special care should be taken for Kubernetes users**: please do not name the service as ``vllm``, otherwise environment variables set by Kubernetes might conflict with vLLM's environment variables, because `Kubernetes sets environment variables for each service with the capitalized service name as the prefix <https://kubernetes.io/docs/concepts/services-networking/service/#environment-variables>`_.
10+
911
.. literalinclude:: ../../../vllm/envs.py
1012
:language: python
1113
:start-after: begin-env-vars-definition

0 commit comments

Comments
 (0)