Repository navigation
Description
Problem Description
On the devcontainer's minikube, no StorageClass local-path exists, so each claim that names it stays Pending. devops devcontainer starts minikube with minikube start --driver=docker --cni=calico (commands/k8s/cluster_runtime.py, _start_minikube) and enables no storage addon. The default storage-provisioner addon of minikube serves only the class standard. The class local-path comes from the storage-provisioner-rancher addon.
Claims that name local-path: k8s/devops/roadmap-service/pvc.yaml, k8s/gitea/values.yaml, k8s/monitoring/grafana-values.yaml, k8s/monitoring/k8s-monitoring-values.yaml (alloy-wal), k8s/monitoring/prometheus-values.yaml, k8s/monitoring/pyroscope-values.yaml and k8s/otel/tempo-values.yaml.
Reproduction Steps
- Start the devcontainer's minikube with
devops devcontainer post-start(orbootstrap-k8s). - Run
devops k8s deploy-stack --stack infra. - Run
kubectl get scandkubectl get pvc -A.
Expected vs Actual Behavior
- Expected: the class
local-pathexists, and the claims bind. - Actual:
kubectl get sclists onlystandard, and the claims that namelocal-pathstayPending.
Environment Diagnostics
- minikube v1.39.0.
minikube addons listnamesdefault-storageclass,storage-provisionerandstorage-provisioner-rancher. - devops-cli on origin/main 9e73e6d (2026-10-28).
k8s/README.md(Prerequisites) states the step after docs(k8s): k8s/README.md describes the k3s homelab, its alloy log pipeline and its homelab-provided storage as they run #1648.
Logs, Traces, or Terminal Output
Not run on a live minikube: the minikube of this devcontainer was stopped. The evidence is the start command in cluster_runtime.py and the addon list of minikube v1.39.0.
Existing Tool Considered
minikube's own storage-provisioner-rancher addon gives the class local-path with the rancher provisioner that the homelab runs. The fix is minikube addons enable storage-provisioner-rancher after the start, or --addons=storage-provisioner-rancher on minikube start. Nothing new is built.
Proposed design
Problem statement
The devcontainer's minikube starts without the local-path StorageClass. The default storage-provisioner addon serves only the class standard. Seven PVCs across the infra, gitea, monitoring and otel stacks name local-path, so they stay Pending and the services that mount them cannot start. The fix is to enable minikube's storage-provisioner-rancher addon on the existing start command.
Acceptance criteria
Requirement: local-path StorageClass exists
After devops devcontainer post-start completes, the cluster SHALL have a StorageClass named local-path.
Scenario: StorageClass present after start
- WHEN
devops devcontainer post-startcompletes successfully - THEN
kubectl get sc local-pathreturns the StorageClass with the rancher local-path provisioner
Requirement: PVCs bind
After devops k8s deploy-stack --stack infra completes, every PersistentVolumeClaim that names local-path SHALL be in the Bound state.
Scenario: All local-path PVCs bound
- WHEN
devops k8s deploy-stack --stack infracompletes and the PVCs have had time to bind - THEN
kubectl get pvc -Ashows no PVC withstorageClassName: local-pathin thePendingstate
Requirement: Start command includes addon
The _start_minikube function SHALL pass --addons=storage-provisioner-rancher to the minikube start command.
Scenario: Start command has the addon flag
- WHEN The start command is constructed in
_start_minikube - THEN The command arguments include
--addons=storage-provisioner-rancher
Existing Tool Considered
minikube's storage-provisioner-rancher addon provides the local-path StorageClass with the rancher local-path provisioner, the same provisioner the homelab runs. It lacks nothing. The fix is to add --addons=storage-provisioner-rancher to the existing minikube start command in _start_minikube in src/devops_cli/commands/k8s/cluster_runtime.py. No new code is built.
Key questions
- Where to enable the addon: on the start command or after start?: Add
--addons=storage-provisioner-rancherto theminikube startcommand. This is atomic with the cluster start and follows the pattern of--cni=calicoadded by fix(k8s): devops k8s bootstrap says calico but starts minikube without a policy-enforcing cni #990 to the same function. (best practice) [sources: openspec/changes/archive/2026-10-24-990-calico-cni/proposal.md, k8s/README.md]- Chosen: --addons=storage-provisioner-rancher on minikube start. Atomic with the start, no race window, follows the --cni=calico pattern from fix(k8s): devops k8s bootstrap says calico but starts minikube without a policy-enforcing cni #990 in the same function.
- Rejected: minikube addons enable storage-provisioner-rancher after start. Two-step, leaves a window where the cluster runs without the class. Adds a second command to maintain.
- Which provisioner to use: rancher local-path or the default standard class?: Use the rancher local-path provisioner via
storage-provisioner-rancher. All seven PVCs namelocal-path, and the homelab runs the same rancher provisioner. Changing every PVC tostandardwould break the homelab and the volume-placement rules. (best practice) [sources: k8s/devops/roadmap-service/pvc.yaml, k8s/gitea/values.yaml, k8s/monitoring/grafana-values.yaml, k8s/monitoring/k8s-monitoring-values.yaml, k8s/monitoring/prometheus-values.yaml, k8s/monitoring/pyroscope-values.yaml, k8s/otel/tempo-values.yaml, k8s/README.md]- Chosen: rancher local-path (storage-provisioner-rancher). All PVCs name local-path. The homelab uses the same provisioner. The volume-placement rules and alerts assume local-path semantics.
- Rejected: default standard class (storage-provisioner). Would require changing every PVC and values file to name standard. Breaks the homelab, which uses local-path. Breaks the volume-placement tests and alerts.
- Does minikube v1.39.0 ship the storage-provisioner-rancher addon?: Yes. minikube v1.39.0 lists the addons
default-storageclass,storage-provisionerandstorage-provisioner-rancherinminikube addons list. [sources: openspec/changes/archive/2026-10-29-1648-k8s-readme-homelab/proposal.md, k8s/README.md]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Oct 29, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The devcontainer minikube lacks a required StorageClass, so PVCs stay Pending.Multiple devcontainer services cannot start, but this is a local development issue, not production.Unblocks local development for grafana, prometheus, gitea, pyroscope, and tempo.The fix is one addon-enable call or one --addons flag on the existing start command.Both add a missing flag to the minikube start command in cluster_runtime.py, but #990 adds --cni=calico while this adds the storage-provisioner-rancher addon.docs(k8s): k8s/README.md describes the k3s homelab, its Alloy log pip…
devops-cli-service commentedon Oct 29, 2026
Status set to Ready at a3eb41f (see proposed design in issue body).
devops-cli-service commentedon Nov 1, 2026
Staged: branch
fix/2570-minikube-starts-with-no-local-path, draft pull request #2998. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
These paths of the plan are no file on the default branch, and no group creates them:
tests/test_k8s_cluster_runtime.py. A person checks that the plan names them right.docs(openspec): plan #2570 add local-path addon to minikube start (#2998
67 remaining items
devops-cli-service commentedon Nov 4, 2026
Cleared the stop at fix by the rule
digest: the runner image changed since the stop, from sha256:eb2c32f9c27c350eafb35b7f08c274621a0a05b95904b2185c667b9805b0d499 to sha256:ff7f81f8f5902c5ae4e48ed334bc83f842b51afb639ab71be65cb4240daadf01. The item is Planned again, and the Service takes it in the next round. The Service clears a stop one time for each runner image. A new stop on this image waits for a commentimplement: retry.[-]fix(devcontainer): minikube starts with no local-path StorageClass, so the claims that name it stay Pending[/-][+]fix(devcontainer): add local-path addon to minikube start[/+]dan-petty commentedon Nov 6, 2026
The job shortened the title of this item. The summary had 88 characters, and the limit is 60. The type and the scope stay.
fix(devcontainer): minikube starts with no local-path StorageClass, so the claims that name it stay Pendingfix(devcontainer): add local-path addon to minikube startdevops-cli-service commentedon Nov 6, 2026
Released in v0.71.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.71.1
devops-cli-service commentedon Nov 6, 2026
Live since 2026-11-06 19:47 UTC