Skip to content

feat(longhorn): configure R2 backup target with daily RecurringJob#44

Merged
turtton merged 1 commit into
mainfrom
feat/longhorn-r2-backup
May 30, 2026
Merged

feat(longhorn): configure R2 backup target with daily RecurringJob#44
turtton merged 1 commit into
mainfrom
feat/longhorn-r2-backup

Conversation

@turtton

@turtton turtton commented May 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Longhorn BackupTargetをCloudflare R2 (s3://longhorn-backup@apac/) に設定
  • SOPS暗号化SecretでR2クレデンシャル(access key, secret key, endpoint)を管理
  • 毎日0:00 UTCに全defaultグループボリュームのバックアップを実行するRecurringJob(7世代保持)

Changes

  • clusters/main/infrastructure/controllers/longhorn/r2-credentials.sops.yaml (new) — R2認証情報
  • clusters/main/infrastructure/controllers/longhorn/recurring-job.yaml (new) — RecurringJob CR
  • clusters/main/infrastructure/controllers/longhorn/helmrelease.yaml — backupTarget + credentialSecret追加
  • clusters/main/infrastructure/controllers/longhorn/kustomization.yaml — 新リソース追加
  • .gitignore.omo/ 除外追加

Prerequisites

Verification

マージ後、Flux reconcile → Longhorn Settings画面で BackupTarget が設定されていることを確認。
24h後にバックアップが作成されていることをLonghorn UIで確認。

@github-actions

github-actions Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor

✅ Validation passed

Validation output
Summary: 39 resources found parsing stdin - Valid: 28, Invalid: 0, Errors: 0, Skipped: 11

- Add SOPS-encrypted Secret with R2 credentials (access key, secret key, endpoint)
- Configure backupTarget to s3://longhorn-backup@apac/ in HelmRelease
- Add weekly RecurringJob (Sunday 0:00 UTC, retain 4, default group)
@turtton turtton force-pushed the feat/longhorn-r2-backup branch from c2ad980 to b81b93f Compare May 30, 2026 06:03
@turtton turtton merged commit 80ad45e into main May 30, 2026
1 check passed
@turtton turtton deleted the feat/longhorn-r2-backup branch May 30, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant