Repository navigation
Description
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/ollamafrom the GPU Placement section ofk8s/README.md - THEN
tests/prometheus/test_k8s_monitoring_alerting.pyfails 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 ofk8s/README.md - THEN
tests/prometheus/test_k8s_monitoring_alerting.pyfails 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/ollamaof each Ollama tier, mounted at/home/ollama/.ollama. The initContainerown-model-directorygives the directory to UID and GID 10001 at each start, becausefsGroupdoes 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 thatinfra.reposnames, 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 toHostFilesystemSpaceLow. - 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.
- Chosen: Mount another disk at
- Which alert shows the free space of the store filesystem and of the root filesystem?:
HostFilesystemSpaceLowwatches every filesystem of every node, at 10% free (warning) and 5% (critical).LocalPathNodeDiskHighreads only the root filesystem (mountpoint="/") of a node that runs a pod on alocal-pathclaim, 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.
- Chosen: The GPU Placement section of
- Where does the test that pins the mount point go?: In
tests/prometheus/test_k8s_monitoring_alerting.py, besidetest_the_readme_states_the_free_space_query_of_a_node_after_a_prune, which reads one###section ofk8s/README.mdwith_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 ofk8s/README.mdand 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.
- Chosen:
- Does the change add a script that mounts the disk?: No. The change writes one paragraph in
k8s/README.mdand 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
devops-cli-service commentedon Nov 5, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(k8s)scope of the title gives the scope.Important for disk headroom but requires manual host work and depends on #3654 landing first.Prevents recurring disk pressure on the control-plane node.A host disk operation and a README edit; no repository code change.Both address control-plane node disk space; #3654 frees space by removing models, the candidate moves the store to a different disk.devops-cli-service commentedon Nov 6, 2026
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.
devops-cli-service commentedon Nov 7, 2026
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.
/var/lib/ollama.dan-petty commentedon Nov 14, 2026
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 andLocalPathNodeDiskHighstays 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.devops-cli-service commentedon Nov 14, 2026
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.
/var/lib/ollamaon the control-plane node and record the device and the filesystem on this issue.devops-cli-service commentedon Nov 20, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 26, 2026
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 rootREADME.mdrecords 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. Thek8s/README.mdtext and the test of the design were not written.