Skip to content

fix(k8s): give the ollama-16gib tier a memory limit #5115

Closed

Description

@dan-petty

Problem Description

The ollama container of the ollama-16gib DaemonSet (k8s/llm/profiles/ollama-profiles.yaml) requests 8Gi of memory and sets no memory limit. Its node, hawk, now has 16 GiB of RAM (it had 64 GiB). The tier serves nothing (k8s/README.md, GPU Placement), but a DaemonSet pod still runs on a cordoned node. A request that loads a model straight to the tier, past the gateway, can take all of the free RAM of hawk, because no limit stops the container. Only ollama-64gib (8Gi request, 12Gi limit) and the two embed tiers (2Gi request, 4Gi limit) set a memory limit now.

Reproduction Steps

  1. kubectl -n llm get ds ollama-16gib -o jsonpath='{.spec.template.spec.containers[?(@.name=="ollama")].resources}' shows {"requests":{"cpu":"3000m","memory":"8Gi"}} and no limits.
  2. kubectl get node hawk -o jsonpath='{.status.capacity.memory}' shows 16240676Ki (15.5 GiB).

Expected vs Actual Behavior

Expected: the container has a memory limit that fits hawk. When the tier loads a model and goes over the limit, the kernel stops the container, not the node. The sum of the memory limits of the pods on hawk stays below its allocatable (about 13 GiB after the system reservation of dan-petty/homelab pull request 19).

Actual: no limit.

Environment Diagnostics

Live read on 2026-11-12: ollama-16gib uses 283Mi idle; ollama-64gib uses 6602Mi with qwen3.8:27b loaded (kubectl top pod -n llm). Other pods on hawk have memory limits of 768Mi, 768Mi, 256Mi and 256Mi.

Logs, Traces, or Terminal Output

Related: #3785 (crashes of hawk).

Activity

  1. added
    source/agent
    type/bug
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 12, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 16:17 UTC

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

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions