Repository navigation
Move Grafana and VictoriaMetrics to standard ZFS appdata and Restic - #521
Merged
Merged
Conversation
edgard
added a commit
that referenced
this pull request
Nov 21, 2026
After #521, Grafana and VictoriaMetrics both became healthy on their new zfs-appdata claims. Remove the source-only PVCs, zfs-telemetry StorageClass, and temporary copy init containers. Keep the new claims and their data subpaths, Restic backup and hourly ZFS snapshots. **Deployment evidence** - Both copy init containers completed; the Grafana uptime share returned 200 and VictoriaMetrics returned a kubelet sample from before migration. - Ran the production platform-system-backup CronJob once and restored its snapshot into an isolated emptyDir. Restic verified 256 files. The restored Grafana SQLite database passed its integrity check and contained user records. A fresh VictoriaMetrics process opened the restored data and returned the historical kubelet sample. - Removed both temporary verification Jobs after success. Gatus continues to send production notifications during comparison. - `task fmt` and `task check` passed locally (49 applications, 81 raw manifest files, 28 offline tests). Reviewed the storage page, restore runbook and Wiki log. After reconciliation verify both source datasets and the obsolete class are gone, and both new claims and applications remain healthy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the existing zfs-appdata StorageClass for Grafana (1 GiB) and VictoriaMetrics (64 GiB). Both Recreate deployments stop the old writer, verify the original read-only source by dataset identity, compare the copy and publish the completed data directory atomically. The original claims remain available for recovery through acceptance.
The new daily platform-system Restic job captures the live SQLite database and a native VictoriaMetrics snapshot. Each run stages its own files, checks the repository ID and mounts the staging directories read-only in the Restic container. Foundation and cold recovery now cover both claims. The default class also includes them in hourly ZFS snapshots.
Validation —
task fmt,task checkand the focused wiki test passed. All 28 offline tests passed. Targeted Helm rendering verified bound source name, new claim names, init mounts and restart handling. Disposable migration tests covered source mismatch, retries and preserved database journal content. The production restore filters selected both new claims. After merge, verify the pre-migration sample, Grafana share, backup snapshot and scratch restore before pruning original volumes and class in a separate PR.Wiki — updated storage, backup and recovery, monitoring, app pages and the wiki log. November's semantic review is already recorded.