Skip to content

fix(devcontainer): add local-path addon to minikube start #2570

Closed

Description

@dan-petty

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

  1. Start the devcontainer's minikube with devops devcontainer post-start (or bootstrap-k8s).
  2. Run devops k8s deploy-stack --stack infra.
  3. Run kubectl get sc and kubectl get pvc -A.

Expected vs Actual Behavior

  • Expected: the class local-path exists, and the claims bind.
  • Actual: kubectl get sc lists only standard, and the claims that name local-path stay Pending.

Environment Diagnostics

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-start completes successfully
  • THEN kubectl get sc local-path returns 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 infra completes and the PVCs have had time to bind
  • THEN kubectl get pvc -A shows no PVC with storageClassName: local-path in the Pending state

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-rancher to the minikube start command. This is atomic with the cluster start and follows the pattern of --cni=calico added 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]
  • 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 name local-path, and the homelab runs the same rancher provisioner. Changing every PVC to standard would 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-provisioner and storage-provisioner-rancher in minikube 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

  1. added
    source/agent
    type/bug
    status/new
    value/medium
    effort/low
    on Oct 29, 2026
  2. dan-petty commented on Oct 29, 2026

    @dan-petty
    OwnerAuthor

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

    • Type: type/bug. The devcontainer minikube lacks a required StorageClass, so PVCs stay Pending.
    • Priority: P2-Medium. Multiple devcontainer services cannot start, but this is a local development issue, not production.
    • Value: Medium. Unblocks local development for grafana, prometheus, gitea, pyroscope, and tempo.
    • Effort: Low. The fix is one addon-enable call or one --addons flag on the existing start command.
    • Related: fix(k8s): devops k8s bootstrap says calico but starts minikube without a policy-enforcing cni #990, which asks for a different change. 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.
  3. added
    priority/p2-medium
    on Oct 29, 2026
  4. added
    status/ready
    and removed
    status/new
    on Oct 29, 2026
  5. devops-cli-service commented on Oct 29, 2026

    @devops-cli-service
    Contributor

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

  6. added
    scope/devcontainer
    on Oct 30, 2026
  7. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

    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:

    1. Add storage-provisioner-rancher addon to minikube start: 3013 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.

  8. added a commit that references this issue on Nov 1, 2026
  9. removed
    status/ready
    on Nov 1, 2026
  10. 67 remaining items

  11. added
    status/planned
    and removed
    status/blocked
    on Nov 4, 2026
  12. devops-cli-service commented on Nov 4, 2026

    @devops-cli-service
    Contributor

    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 comment implement: retry.

  13. changed the title [-]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[/+] on Nov 6, 2026
  14. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    The job shortened the title of this item. The summary had 88 characters, and the limit is 60. The type and the scope stay.

  15. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 6, 2026
  16. removed
    status/in-review
    owner/agent
    on Nov 6, 2026
  17. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor
  18. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 19:47 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/devcontainersource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions