Skip to content

fix: remove the unused nginx 8001 proxy to localhost:8000 - #248

Open
taylorburmeister-runpod wants to merge 1 commit into
developfrom
remove-unused-8001-proxy
Open

taylorburmeister-runpod wants to merge 1 commit into
developfrom
remove-unused-8001-proxy

Conversation

@taylorburmeister-runpod

Copy link
Copy Markdown
Contributor

Summary

Removes the base nginx config's listen 8001 → proxy_pass http://localhost:8000 block (container-template/proxy/nginx.conf). Every image built on the base inherits it, including nvidia-pytorch and rocm, which use the same proxy config.

Why

  • It's dead config. It came with the vscode-server template in 2023 (d74d9d6). That template was later removed; nothing in the repo runs on 8000, maps 8001, or documents the port.
  • It's an unauthenticated relay. nginx listens on 8001 on every interface and forwards to localhost:8000 with 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.
  • It's a trap on the Ray cluster image. Ray Serve's HTTP proxy defaults to 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.
  • It conflicts with feat(ray-cluster): add an inference variant that serves a model with vLLM #245. The inference variant runs vLLM on 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 -t passes 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

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
taylorburmeister-runpod changed the base branch from main to develop November 18, 2026 14:54
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants