Repository navigation
fix: remove the unused nginx 8001 proxy to localhost:8000 - #248
Open
taylorburmeister-runpod wants to merge 1 commit into
Open
taylorburmeister-runpod wants to merge 1 commit into
taylorburmeister-runpod wants to merge 1 commit into
Conversation
The block came with the vscode-server template (d74d9d6, 2023), which has since been removed; nothing in the repo runs on 8000 or maps 8001 now. Left in place, it relays anything a user runs on localhost:8000 to 8001 on every interface with no auth. Ray Serve's HTTP proxy defaults to 127.0.0.1:8000, so on the Ray cluster image a Serve app kept on localhost would be reachable by anything that can reach 8001: other nodes, or the internet if a template maps the port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
taylorburmeister-runpod
added a commit
that referenced
this pull request
Nov 18, 2026
#248 removes the base's unused 8001 -> localhost:8000 block. The inference image builds on published Ray images, which keep it until that's released, so its removal step now accepts either state; the guard that nothing in nginx listens on 8001 is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
taylorburmeister-runpod
added a commit
that referenced
this pull request
Nov 18, 2026
#248 removes the base's unused 8001 -> localhost:8000 relay for every image, so the inference image no longer strips it itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
taylorburmeister-runpod
added a commit
that referenced
this pull request
Nov 19, 2026
#248 removes the base's unused 8001 -> localhost:8000 block. The inference image builds on published Ray images, which keep it until that's released, so its removal step now accepts either state; the guard that nothing in nginx listens on 8001 is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
taylorburmeister-runpod
added a commit
that referenced
this pull request
Nov 19, 2026
#248 removes the base's unused 8001 -> localhost:8000 relay for every image, so the inference image no longer strips it itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
taylorburmeister-runpod
added a commit
that referenced
this pull request
Nov 19, 2026
…e image The base nginx relays 8001 to localhost:8000, which in the inference variant is vLLM without LiteLLM's key. #248 removes it from the base, but this image builds FROM a published pytorch-cluster that may still carry it. Strip the block here and fail the build if nginx still proxies to 8000, so the merge order of the two PRs doesn't matter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
taylorburmeister-runpod
added a commit
that referenced
this pull request
Nov 20, 2026
…vLLM (#245) feat(ray-cluster): add an inference variant that serves a model with vLLM (#245) Adds runpod/ray-cluster:<version>-inference-cu1300-torch2130-ubuntu2404: the Ray cluster image plus vLLM 0.32.0 behind LiteLLM's proxy. It serves one Hugging Face model across the whole cluster and is configured only with environment variables (MODEL_REPO, HF_TOKEN, LITELLM_MASTER_KEY, MAX_MODEL_LENGTH, VLLM_EXTRA_ARGS). The entrypoint and contract v1 are unchanged; only the CMD differs (/opt/runpod/inference/start). - Workers run Ray only. The head downloads the model, waits for NUM_NODES nodes to join Ray (each with the same nonzero GPU count), then runs `vllm serve` on 127.0.0.1:8000. Tensor parallelism is the GPUs per node, and pipeline parallelism is the node count. A pod without NODE_RANK serves on its own GPUs without Ray. - The API is LiteLLM's proxy on 4000. LiteLLM 1.108.11 runs in its own venv and is installed --require-hashes from a lock file. It starts only once vLLM answers /health, and not at all if vLLM exits first. The master key is LITELLM_MASTER_KEY, else the head's JUPYTER_PASSWORD; `none` turns authentication off. The admin UI and the price-map fetch are off. - Bad settings are refused before anything starts: no key, a MODEL_REPO starting with "-", a bad NUM_NODES, no GPU, or --api-key or --config in VLLM_EXTRA_ARGS (abbreviations included, as vLLM's argparse takes them). The pod stays up for SSH, Jupyter and monitoring if vLLM or LiteLLM is refused, fails or exits. - The head downloads exactly the weight files vLLM's loader reads, honouring --revision, --download-dir and --load-format from VLLM_EXTRA_ARGS, so workers sharing a network volume find a complete cache. If the Hub is unreachable, it serves only a snapshot an earlier download completed. - The head's Prometheus scrapes vLLM, and LiteLLM's /metrics with the key from a root-only file. It adds these jobs only once the head has accepted the settings, and leaves out LiteLLM's hashed_api_key label. vLLM's three dashboards and LiteLLM's "Prod v2" dashboard load into an Inference folder in Grafana. - The build is FROM the cu1300/torch2130 Ray target in the same bake run, since vLLM pins torch exactly. It fails if vLLM would replace torch or Ray, and pins vLLM's ranged dependencies. It strips the base nginx's unauthenticated 8001 -> localhost:8000 relay (see #248) and fails if anything still proxies to 8000. - CI lints the new Dockerfile, runs the new table-driven unit tests when the scripts change, and publishes PR builds of the variant to the dev repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the base nginx config's
listen 8001→proxy_pass http://localhost:8000block (container-template/proxy/nginx.conf). Every image built on the base inherits it, includingnvidia-pytorchandrocm, which use the same proxy config.Why
d74d9d6). That template was later removed; nothing in the repo runs on 8000, maps 8001, or documents the port.localhost:8000with no auth. Anything a user keeps on localhost:8000 can be reached by anything that can reach 8001: other nodes, or the internet if a template maps the port.127.0.0.1:8000. The image's README suggests running a Serve app as the CMD, and Ray's token auth doesn't cover Serve's HTTP ingress.127.0.0.1:8000. feat(ray-cluster): add an inference variant that serves a model with vLLM #245 removes this block in its own Dockerfile and can drop that step once this is released.Testing
nginx -tpasses with the edited config. The block was self-contained; no other server or snippet referenced it.Note
This is a behaviour change for anyone who relied on the slot, by mapping 8001 to reach something on 8000. I found no such use in the repo or its docs.
🤖 Generated with Claude Code