Skip to content

feat(k8s): place vLLM and Ollama by GPU architecture behind an authenticated LLM gateway #453

Closed

Description

@dan-petty

Problem

The k8s/llm stack cannot run vLLM reliably on a cluster that also runs the Ollama DaemonSet:

  • The vLLM Deployment only selects nvidia.com/gpu.present, so it can land on GPUs vLLM does not support (pre-Ampere) or that cannot fit its model.
  • Ollama requests no nvidia.com/gpu and sees every GPU on its node (NVIDIA_VISIBLE_DEVICES=all), so it silently competes with vLLM for the same VRAM; vLLM pre-allocates 95% of each GPU.
  • The served model (Llama 3.3 70B AWQ) barely fits two 24 GiB GPUs, and a single-GPU vLLM profile does not exist.
  • vLLM cannot download weights through the SSL-bumping Squid proxy (the Squid CA is not trusted), keeps weights on an emptyDir, and has no startup probe for multi-minute model loads.

Proposal

Place inference engines by GPU architecture:

  • vLLM (dual-GPU): nodes with 2+ Ampere-or-newer GPUs; Qwen2.5-Coder-32B-Instruct-AWQ, tensor parallel 2, 64K context (YaRN), serving devops-reasoning.
  • vLLM (single-GPU): nodes with one Ampere-or-newer GPU (16 GiB+); Qwen2.5-Coder-14B-Instruct-AWQ, FP8 KV cache, serving devops-coder.
  • Ollama: nodes whose GPUs are older than Ampere; keeps devops-chat, embeddings and the direct fallback.

Selectors accept both NVIDIA GPU Feature Discovery labels (nvidia.com/gpu.family) and architecture labels (nvidia.com/gpu.architecture). vLLM gets a pinned image, a persistent model-cache PVC, the Squid CA bundle, a startup probe, Recreate rollouts, and LAN access through an auto-assigned NodePort Service. Gateway routes, Portkey and LiteLLM configs move to the new served model names via shared constants.

Acceptance criteria

  • Manifest tests cover selectors, model arguments, probes, CA trust, PVC and NodePort Services.
  • Gateway routes and configs reference the served-model constants.
  • uv run devops ci passes.

Scope extension: authenticated LLM gateway

Clients need one endpoint for all inference servers, so the same change deploys the LiteLLM gateway properly:

  • LiteLLM bumped from v1.61.16 to v1.102.1; master key from the llm-gateway-secrets Secret, created at deploy time and never committed.
  • Gateway Service becomes the single LAN entry point (NodePort, Kubernetes-assigned port); vLLM Services stay ClusterIP behind it.
  • Router timeout raised from 60 s to 600 s for long code reviews.
  • Open WebUI's OpenAI connection points at the gateway with the shared master key.
  • vLLM downloads disable Hugging Face Xet transfers, which fail authentication through the SSL-bumping proxy, and the 64K YaRN override sets max_position_embeddings, which vLLM 0.30 reads instead of multiplying the factor.

Activity

  1. added this to the v0.2.23 milestone on Sep 23, 2026
  2. added
    type/feature
    scope/ai
    scope/k8s
    priority/p2-medium
    status/in-progress
    on Sep 23, 2026
  3. changed the title [-]feat(k8s): place vLLM and Ollama by GPU architecture with dual- and single-GPU vLLM profiles[/-] [+]feat(k8s): place vLLM and Ollama by GPU architecture behind an authenticated LLM gateway[/+] on Sep 23, 2026
  4. added a commit that references this issue on Sep 23, 2026
    75ce54a
  5. dan-petty commented on Sep 23, 2026

    @dan-petty
    OwnerAuthor

    Closed by #457, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  6. added a commit that references this issue on Sep 28, 2026
    ea49d6e
  7. removed
    status/in-progress
    on Oct 30, 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/p2-mediumscope/aiscope/k8stype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions