feat(storage): migrate 12 SQLite NFS PVCs to proxmox-lvm (Wave 1)
Add proxmox-lvm PVCs with pvc-autoresizer annotations for all SQLite-backed services. Deployments updated to use new block storage PVCs. Old NFS modules retained for 1-week rollback. Services: ntfy, freshrss, insta2spotify, actualbudget (x3), wealthfolio, navidrome (DB only), audiobookshelf config, headscale, forgejo, uptime-kuma. Also: set Recreate strategy on ntfy, forgejo, insta2spotify, wealthfolio (required for RWO volumes).
This commit is contained in:
parent
792da5c066
commit
ee39dd2fc9
10 changed files with 263 additions and 14 deletions
|
|
@ -203,6 +203,28 @@ module "nfs_audiobookshelf_config" {
|
|||
nfs_path = "/mnt/main/audiobookshelf/config"
|
||||
}
|
||||
|
||||
resource "kubernetes_persistent_volume_claim" "abs_config_proxmox" {
|
||||
wait_until_bound = false
|
||||
metadata {
|
||||
name = "ebooks-abs-config-proxmox"
|
||||
namespace = kubernetes_namespace.ebooks.metadata[0].name
|
||||
annotations = {
|
||||
"resize.topolvm.io/threshold" = "80%"
|
||||
"resize.topolvm.io/increase" = "100%"
|
||||
"resize.topolvm.io/storage_limit" = "5Gi"
|
||||
}
|
||||
}
|
||||
spec {
|
||||
access_modes = ["ReadWriteOnce"]
|
||||
storage_class_name = "proxmox-lvm"
|
||||
resources {
|
||||
requests = {
|
||||
storage = "1Gi"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module "nfs_audiobookshelf_metadata" {
|
||||
source = "../../modules/kubernetes/nfs_volume"
|
||||
name = "ebooks-abs-metadata"
|
||||
|
|
@ -589,7 +611,7 @@ resource "kubernetes_deployment" "audiobookshelf" {
|
|||
volume {
|
||||
name = "config"
|
||||
persistent_volume_claim {
|
||||
claim_name = module.nfs_audiobookshelf_config.claim_name
|
||||
claim_name = kubernetes_persistent_volume_claim.abs_config_proxmox.metadata[0].name
|
||||
}
|
||||
}
|
||||
volume {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue