Skip to content

fix(k8s): open webui, the ollama ingress, the gateway and the cli's default ollama service point at tiers that have pods #1637

Closed

Description

@dan-petty

Friction

Several consumers of Ollama point at VRAM tiers that have had no pods for weeks, since the 16 GiB and 24 GiB hosts went offline. ollama.<domain> answers 503 from Traefik, Open WebUI's first Ollama URL has no backend, devops k8s port-forward --stack llm and configure-urls target an empty Service, the CLI's direct-Ollama failover routes go nowhere, and the gateway's gpt-oss:20b group can reach only the empty ollama-16gib-fast (and devops-chat, devops-review and qwen3.8:27b include it in their pools). The routing names fixed VRAM sizes, so every host change silently breaks consumers. Open WebUI's RAG embedding is probably not tied to these tiers at all: no RAG Ollama URL is set, so it likely defaults to localhost.

Evidence

Live, read-only, 2026-10-18:

  • Ingress llm/ollama-ingress (Application ingress, Synced at 3dd7fa6) has backend Service ollama-16gib.
  • EndpointSlices with no endpoints: ollama-16gib, ollama-16gib-fast, ollama-24gib, ollama-24gib-slow. With one endpoint each: ollama-48gib, -48gib-fast, -48gib-slow, -64gib, -64gib-standard, ollama-fast, ollama-standard, ollama-slow.
  • DaemonSets ollama-16gib and ollama-24gib desire 0: their affinity requires nvidia.com/gpu.total-vram-gib In [16Gi,20Gi] or [24Gi,28Gi] (k8s/llm/profiles/ollama-profiles.yaml:68,212); the remaining nodes are labelled 48Gi (), 64Gi () and 48Gi ().
  • kube_daemonset_status_number_ready: ollama-24gib at 0 since about 2026-10-03 and ollama-16gib since about 2026-10-11 (the hosts went offline; deleting their Node objects on 2026-10-17 only moved DESIRED to 0).
  • StatefulSet open-webui-0: OLLAMA_BASE_URLS = ollama-24gib, then ollama-64gib; no RAG_OLLAMA_BASE_URL or OLLAMA_BASE_URL. Both are Open WebUI PersistentConfig values, so the URLs in use come from its database (Admin Panel, Settings, Connections), visible only to a person.
  • Traefik runs with --providers.kubernetesingress.allowEmptyServices=true, hence 503 rather than 404.

Repo:

  • k8s/ingress/ingress-routes.yaml:90 (backend ollama-16gib); k8s/llm/values-open-webui.yaml:18-22 (ollamaUrls), comments at :37 and :46 describing a 16 GiB embedding node.
  • src/devops_cli/config/defaults.py:92 DEFAULT_OLLAMA_CLUSTER_SERVICE = "ollama-16gib", used by networking.py:1030 (port-forward) and :499 (configure-urls) and by the failover routes in ai/gateway.py:47-59; defaults.py:428 counts ollama-16gib-fast in DEFAULT_GATEWAY_REVIEW_SLOTS.
  • k8s/llm/gateway/configmap.yaml:18,89,109,128 route to ollama-16gib-fast; the README (:57-58, :88, :126) and k8s/llm/profiles/README.md describe ollama-16gib as the default live tier.
  • k8s/llm/profiles/services.yaml:194-196,216-218: ollama-fast and ollama-standard still select by VRAM size; only ollama-slow is speed-only.
  • Related: fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 makes deploy-stack warn about GPU nodes no tier accepts and documents GPU placement; it does not move consumers.

Remedy

  1. The owner records in k8s/README.md (fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367's GPU placement section) which hosts and tiers are expected to serve; owner notes say the 16 GiB and 24 GiB hosts are offline for the foreseeable future.
  2. Tests first: a test that every consumer default (DEFAULT_OLLAMA_CLUSTER_SERVICE, the ollama ingress backend, Open WebUI's ollamaUrls and RAG URL, the gateway's api_base targets and DEFAULT_GATEWAY_REVIEW_SLOTS) names a Service whose selector matches a tier the README lists as serving.
  3. Point ollama-ingress (ingress-routes.yaml:90) and DEFAULT_OLLAMA_CLUSTER_SERVICE (defaults.py:92) at a served tier (ollama-48gib-fast/ollama-fast or ollama-64gib-standard/ollama-standard); the ingress and Open WebUI take Ollama's native API, so they cannot point at the gateway.
  4. Open WebUI: set ollamaUrls (values-open-webui.yaml:20-22) to served tiers and RAG_OLLAMA_BASE_URL explicitly to the tier that keeps bge-m3 loaded (ollama-48gib-slow per the gateway config). Pending a person: update the persisted connections in Open WebUI's Admin Panel.
  5. Gateway: remove or re-home the ollama-16gib-fast deployments in k8s/llm/gateway/configmap.yaml (gpt-oss:20b needs another backend or leaves the model list) and update DEFAULT_GATEWAY_REVIEW_SLOTS.
  6. Update the README lines and the stale comments listed above. Longer term, consider a role-labelled Service per purpose (default, embedding) so consumers stop naming VRAM sizes.

Priority: P2. Severity medium when the CLI default and the gateway backend are counted with the ingress and Open WebUI: several user paths reach no pod.

Proposed design

Problem statement

The Ollama services in the Kubernetes cluster are misconfigured, with several consumers (Ingress, Open WebUI, CLI defaults, gateway) pointing to VRAM tiers that have no running pods. This causes 503 errors for Ingress, empty backends for Open WebUI and CLI tools, and broken routing for the gateway's devops-review group.

Acceptance criteria

  • Criterion 1: The ollama ingress backend points to a service with active endpoints
    Verification: kubectl get endpoints ollama-48gib-fast -n llm and verify it has at least one ready endpoint
  • Criterion 2: Open WebUI's ollamaUrls point to services with active endpoints
    Verification: Check k8s/llm/values-open-webui.yaml and verify the services referenced have ready endpoints
  • Criterion 3: CLI default service points to a service with active endpoints
    Verification: Verify DEFAULT_OLLAMA_CLUSTER_SERVICE in src/devops_cli/config/defaults.py points to a service with ready endpoints
  • Criterion 4: Gateway routing configuration points to services with active endpoints
    Verification: Check k8s/llm/gateway/configmap.yaml and verify all api_base URLs point to services with ready endpoints
  • Criterion 5: RAG embedding URL in Open WebUI points to a service with active endpoints
    Verification: Verify the RAG_OLLAMA_BASE_URL in Open WebUI's configuration points to a service with ready endpoints

Key questions

  • Which VRAM tiers currently have running pods?: Based on the evidence, ollama-48gib, ollama-48gib-fast, ollama-48gib-slow, ollama-64gib, ollama-64gib-standard, ollama-fast, ollama-standard and ollama-slow have running pods. [sources: k8s/llm/profiles/ollama-profiles.yaml, k8s/README.md]
  • What is the current default Ollama service used by CLI tools?: The current default Ollama service used by CLI tools is ollama-16gib. [sources: src/devops_cli/config/defaults.py:92]
  • What services should be updated to point to active tiers?: The ollama ingress, CLI default service, Open WebUI's ollamaUrls and RAG URL, and gateway routing configuration should all be updated to point to active VRAM tiers. (proposed) [sources: k8s/ingress/ingress-routes.yaml:90, src/devops_cli/config/defaults.py:92, k8s/llm/values-open-webui.yaml:18-22, k8s/llm/gateway/configmap.yaml]
  • Which VRAM tier is recommended for the default service?: Based on the context and available data, ollama-48gib-fast or ollama-fast are recommended as they have active pods and good performance characteristics. (proposed) [sources: k8s/llm/profiles/ollama-profiles.yaml, k8s/README.md]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    on Oct 18, 2026
  2. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/bug. The candidate describes a functional issue where services point to tiers with no pods, causing failures.
    • Priority: P1-High. The issue causes multiple services to fail with 503s and empty backends, affecting core functionality.
    • Value: High. Fixing this resolves critical service availability issues for users of the LLM stack.
    • Effort: Medium. Requires updating multiple configuration files and ensuring all consumers point to valid services.
  3. dan-petty commented on Oct 18, 2026

    @dan-petty
    OwnerAuthor

    Status set to Ready at 25e2cda (see proposed design in issue body).

  4. added a commit that references this issue on Oct 23, 2026
    0bff85f
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

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions