feat(local): persist registry volume across computer restarts with PVC#69
Conversation
…th PVC The local in-cluster OCI registry (used for dev-* builds and provider snapshots) now uses a PersistentVolumeClaim. This ensures /var/lib/registry data lives on the colima VM disk (via local-path), surviving host reboots and colima restarts. This is the primary solution for the "registry wipe on restart" problem. See updated spec [[specs/hops-cli-local-registry-recover]] and task for details. Recover command remains as safety net for full resets.
|
Warning Review limit reached
More reviews will be available in 6 minutes and 57 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The in-cluster OCI registry used for local dev builds (
dev-*tags) and provider snapshot images is now backed by a PersistentVolumeClaim.Problem
Previously the
registry:2pod had no volume, so its data lived in the ephemeral container filesystem. Anycolimarestart (explicit, duringhops local resize, or after host reboot) wiped all pushed images. This causedMANIFEST_UNKNOWNfor Configurations andImagePullBackOfffor Functions/Providers, requiring the painful manual recovery dance.Solution
registry-pvc(20Gi ReadWriteOnce)./var/lib/registryfrom the PVC.colima stop/startcycles.Details
hops local start(andensure_registry).This is the primary defense. The recover command (
hops local recover) remains useful as a safety net for deliberate full resets (colima delete, etc.) or as a "force latest published" tool. See the updated spec for the full picture:Verification
kubectl apply --dry-run=client -f cli/bootstrap/registry/registry.yamlsucceeds.ensure_registry()wait loop (for deployment availableReplicas) will cover PVC binding.