Skip to content

feat(k8s): move the Ollama model store off the control-plane root disk #3659

Not planned

Description

@devops-cli-service

Split from #3654.

Problem: The model store of the control-plane node is the hostPath /var/lib/ollama on the node's root filesystem. #3654 removes the models that no tier of the node serves. If the models that the tiers need do not fit in the free space, only a larger disk or another disk for the store frees the space. Why deferred: It is a host change. No manifest in this repository adds a disk or changes the mount of /var/lib/ollama. A person does it with the tools of the host, and #3654 must land first so that the store holds only the models that the tiers need. Acceptance criteria: - A person extends the root disk of the control-plane node, or mounts another disk at /var/lib/ollama. - k8s/README.md names the disk and the mount of the store, in the GPU Placement section. - The root filesystem of the control-plane node is under 75% used after the change. - ollama list in a tier pod on the node shows each model that the tiers of the node serve. - LocalPathNodeDiskHigh does not fire for the node for 7 days.

Proposed design

Problem statement

The Ollama model store is the hostPath /var/lib/ollama on the control-plane node root filesystem. The root disk is the smallest disk in the cluster and can fill. A person must mount a separate disk at /var/lib/ollama. This item records the requirement in the GPU Placement section of k8s/README.md and pins the mount point with a test. The host change is deferred to a new issue.

Acceptance criteria

Requirement: The GPU Placement section names the store mount point

The GPU Placement section of k8s/README.md SHALL name the mount point /var/lib/ollama and state that the model store uses a filesystem separate from the root filesystem of the control-plane node.

Scenario: The mount point leaves the section

  • WHEN A reader removes the text /var/lib/ollama from the GPU Placement section of k8s/README.md
  • THEN tests/prometheus/test_k8s_monitoring_alerting.py fails and names the GPU Placement section and the missing mount point.

Requirement: The GPU Placement section states the 75% bound

The GPU Placement section of k8s/README.md SHALL state that the root filesystem of the control-plane node stays under 75% used after the store moves to its own filesystem.

Scenario: The bound leaves the section

  • WHEN A reader removes the text 75% from the GPU Placement section of k8s/README.md
  • THEN tests/prometheus/test_k8s_monitoring_alerting.py fails and names the GPU Placement section and the missing bound.

Existing Tool Considered

No alternatives check has run. The host operation uses the open, maintained util-linux tools (lsblk, mount, findmnt) and e2fsprogs (mkfs.ext4), with an /etc/fstab entry. No manifest in this repository adds a disk or changes the mount. This item builds no code. It writes one paragraph in k8s/README.md and one test, so the build, keep and fix cost is zero tokens and zero elapsed time.

Key questions

  • Where is the Ollama model store, and what mounts it?: The store is the hostPath /var/lib/ollama of each Ollama tier, mounted at /home/ollama/.ollama. The initContainer own-model-directory gives the directory to UID and GID 10001 at each start, because fsGroup does not apply to a hostPath volume. [sources: k8s/llm/profiles/ollama-profiles.yaml, k8s/README.md]
  • Does a manifest in this repository add the disk, or does a person do it?: A person does it. No manifest in this repository adds a disk or changes the mount of /var/lib/ollama. The node settings live in the infra repo that infra.repos names, dan-petty/homelab. [sources: k8s/README.md, k8s/llm/profiles/ollama-profiles.yaml, CONTEXT.md]
  • Should the store get its own disk, or should the root disk of the control-plane node grow?: Mount another disk at /var/lib/ollama. (best practice) [sources: k8s/README.md:448, k8s/monitoring/prometheus-values.yaml:296]
    • Chosen: Mount another disk at /var/lib/ollama. The store leaves the smallest root disk. Its own filesystem reports its free space to HostFilesystemSpaceLow.
    • Rejected: Extend the root disk of the control-plane node. The root disk also holds the OS and k3s. The store fills it again and the same step repeats.
    • Rejected: Move the store to a worker node. The store is a hostPath of each GPU node. The tier pod runs on the node that holds the GPU.
  • Which alert shows the free space of the store filesystem and of the root filesystem?: HostFilesystemSpaceLow watches every filesystem of every node, at 10% free (warning) and 5% (critical). LocalPathNodeDiskHigh reads only the root filesystem (mountpoint="/") of a node that runs a pod on a local-path claim, at 85% used. The 75% bound is stricter than that warning. [sources: k8s/monitoring/prometheus-values.yaml:296, k8s/monitoring/prometheus-values.yaml:322, k8s/README.md:584, k8s/README.md:637]
  • Where does the documentation of the disk and the mount go?: In the GPU Placement section of k8s/README.md. (best practice) [sources: k8s/README.md:256, k8s/README.md:448]
    • Chosen: The GPU Placement section of k8s/README.md. That section holds the hostPath, the UID of the tier and the initContainer of the store.
    • Rejected: The Local-Path Volume Placement section. That section covers claims and their node affinity. The store is a hostPath and no claim.
  • Where does the test that pins the mount point go?: In tests/prometheus/test_k8s_monitoring_alerting.py, beside test_the_readme_states_the_free_space_query_of_a_node_after_a_prune, which reads one ### section of k8s/README.md with _readme_section. (best practice) [sources: tests/prometheus/test_k8s_monitoring_alerting.py, k8s/README.md]
    • Chosen: tests/prometheus/test_k8s_monitoring_alerting.py. The file already reads sections of k8s/README.md and pins the alert table and the runbook text.
    • Rejected: A new test file. The repository already has a test that reads the README. A new file adds no value.
  • Does the change add a script that mounts the disk?: No. The change writes one paragraph in k8s/README.md and one test. A person runs the host tools, and the node settings belong to the infra repo. (best practice) [sources: CONTEXT.md, k8s/README.md]
    • Chosen: Documentation and one test only. The mount runs as root on the host. No pipeline of this repository reaches the host to run a script.
    • Rejected: A script in this repository that mounts the disk. The node settings live in the infra repo of infra.repos. A host step that no pipeline runs adds untested code.
  • Should the host change stay in this item or be deferred?: Defer the host change to a new issue. This item delivers the documentation and the test. (best practice) [sources: CONTEXT.md, k8s/README.md]
    • Chosen: Defer the host change to a new issue. The change needs a person and the tools of the host. No manifest in this repository adds a disk or changes the mount.
    • Rejected: Keep the host change as a suspected block in this item. The item then waits on a person and cannot reach Ready. The documentation and test are workable now.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 5, 2026
  2. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. Important for disk headroom but requires manual host work and depends on #3654 landing first.
    • Value: Medium. Prevents recurring disk pressure on the control-plane node.
    • Effort: Low. A host disk operation and a README edit; no repository code change.
    • Related: fix(k8s): free the root disk of the control-plane node #3654, which asks for a different change. Both address control-plane node disk space; #3654 frees space by removing models, the candidate moves the store to a different disk.
  3. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 235a807 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  4. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at a2711a1 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • A person must extend the root disk of the control-plane node or mount another disk at /var/lib/ollama.
  5. dan-petty commented on Nov 14, 2026

    @dan-petty
    Owner

    Returned to New: #3654 is closed, but this item's first acceptance criteria are host changes that only a person can make. It asks a person to extend the root disk of the control-plane node, or to mount another disk at /var/lib/ollama, and then to confirm the root filesystem stays under 75% used and LocalPathNodeDiskHigh stays quiet for 7 days. No manifest in this repository adds a disk or changes the mount. An agent can write the GPU Placement paragraph and the test, but they would describe a disk that does not exist, and the test would pin a claim that the host does not meet. #3654 landed the prune that this item waits on; a person now makes the mount and records it, then the docs and test follow.

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at c212f77 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • A person must mount a filesystem from another disk at /var/lib/ollama on the control-plane node and record the device and the filesystem on this issue.
  7. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  8. dan-petty commented on Nov 26, 2026

    @dan-petty
    Owner

    Closed: the model store is already off the root disk.

    dan-petty/homelab moved it to the NVMe disk on 2026-11-06 with ansible/playbooks/12_move_ollama_models.yaml (a bind mount over the model folder) and deleted the old copy. Its root README.md records the move and the rollback. The kubelet image cleanup limits there were lowered later, and on 2026-11-26 that root disk is under the 75% bound of this issue. The k8s/README.md text and the test of the design were not written.

  9. removed
    status/new
    on Nov 26, 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

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions