Skip to content

chore(ai): remove the code, config and policies left over from the removed vLLM deployments #820

Closed

Description

@dan-petty

Context & Rationale

fdd4d0f (#734) deleted the vLLM profiles (k8s/llm/profiles/vllm-profiles.yaml). Yet 413 lines in src/, k8s/ and tests/ still mention vLLM (rg -c -i vllm src k8s tests). Many of them point at Services that no longer exist:

  • Defaults, routes and settings. DEFAULT_VLLM_*CLUSTER_URL point at vllm-48gib and vllm-16gib (src/devops_cli/config/defaults.py:90-96). They are used by:

    • GatewayRouter's routes (src/devops_cli/ai/gateway.py:53-65);
    • scale_vllm (lines 475-510);
    • the probe (lines 521 and 577).

    settings.vllm_url also remains (config/settings.py:428).

  • Commands and the MCP tool. devops ai gateway scale and probe (commands/ai_gateway.py:75-89, 221-255), and the MCP tool ai_vllm_scale (ai/mcp/server.py:2758).

  • Gateway load. The vLLM queries and columns in devops ai gateway load (ai/pool_load.py:139-153; commands/ai_gateway.py:492-493, 540, 563).

  • GPU matrix. gpu_matrix's vllm backend and its vllm-* services (src/devops_cli/k8s/gpu_matrix.py:15-19, 117 and following; commands/k8s/gpu_matrix.py), and CONST_AI_BACKENDS (config/constants.py:1687).

  • Network policies and k8s config.

    • k8s/llm/profiles/networkpolicy.yaml: the whole vllm-profiles-perimeter policy, port 8000;
    • k8s/llm/networkpolicy.yaml:15-16;
    • k8s/llm/gateway/networkpolicy.yaml:43-49;
    • k8s/llm/portkey/networkpolicy.yaml:45;
    • k8s/monitoring/networkpolicy.yaml:101-103;
    • Portkey's vllm-backend virtual key (k8s/llm/portkey/configmap.yaml:19);
    • k8s/llm/values-open-webui.yaml.
  • Comments and docs. k8s/llm/gateway/configmap.yaml:87 and 180; k8s/README.md:69, 86, 119-125 and 267-268; k8s/llm/profiles/README.md.

  • Tests. tests/test_llm_pool_metrics.py:107-140 and 175-213, tests/test_ai_gateway.py, tests/test_ai_gateway_tune.py, tests/test_k8s_gpu_matrix.py and others.

  • Devcontainer. .devcontainer/devcontainer.json:120 sets the Ollama extension's ollama.endpoint to http://vllm-16gib.llm.svc.cluster.local:8000. feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734 deleted that Service, and 8000 was vLLM's port. The configured gpt-oss:20b (:121) is served by ollama-16gib on port 11434 (k8s/llm/profiles/services.yaml; k8s/llm/gateway/configmap.yaml).

Other items already own some of these lines, so this item leaves them alone:

CLAUDE.md requires the codebase to stay clean of legacy references.

Scope & Deliverables

  • Deliverable:
    • Remove every reference that addresses the removed vLLM Services, or that describes this stack as running vLLM, together with their tests and docs.
    • Point .devcontainer/devcontainer.json's ollama.endpoint at http://ollama-16gib.llm.svc.cluster.local:11434, and add a file-only test that the endpoint names a Service and port in k8s/llm/profiles/services.yaml that the gateway routes ollama.model to.
    • Regenerate docs/MCP_TOOLS.md and the CLI reference.
  • Acceptance criteria:
    • rg -n -i vllm src k8s tests .devcontainer prints only the generic engine support kept by the key question below.
    • devops ai gateway load reports gateway and GPU figures with no vLLM columns.
    • uv run devops ci passes.
  • Key questions:
  • Constraint: No behaviour change for Ollama routing. Pre-1.0, so commands are removed outright, not deprecated.

Strategic Alignment

Update 2026-10-08: refinement

296 vLLM lines remain (from 413). #1223 removed the matrix backend; #597 closed; #795 left its policy rule here (tests/test_k8s_llm_gateway.py:608-614, :770). Moved lines: config/defaults.py:93-99, config/settings.py:480, ai/mcp/server.py:2924, commands/ai_gateway.py:79-93, :301-335, config/constants.py:2439, :3748, ai/gateway.py:476-510, :524, :580. New site: ai/spend/pricing.py:72.

Activity

  1. added
    type/chore
    scope/ai
    priority/p1-high
    on Oct 1, 2026
  2. added
    scope/k8s
    on Oct 2, 2026
  3. added this to the v0.2.34 milestone on Oct 9, 2026
  4. dan-petty commented on Oct 11, 2026

    @dan-petty
    OwnerAuthor

    Merged

  5. added a commit that references this issue on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/aiscope/k8stype/chore

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions