storage: migrate send off proxmox-lvm to NFS (LUN-cap relief)
Send (timvisee/send) stores encrypted upload blobs on disk with metadata in Redis — no embedded DB, NFS-safe. Frees one proxmox-csi SCSI-LUN slot on node2. - swap send-data-proxmox -> nfs_volume module - blobs copied + verified (273M, 22 entries, HTTP 200 on NFS) - block PVC removed; LV retained per SC policy (code-dfjn cleanup) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
c24b4a21d8
commit
e35d693972
1 changed files with 11 additions and 28 deletions
|
|
@ -27,33 +27,16 @@ module "tls_secret" {
|
|||
tls_secret_name = var.tls_secret_name
|
||||
}
|
||||
|
||||
resource "kubernetes_persistent_volume_claim" "data_proxmox" {
|
||||
wait_until_bound = false
|
||||
metadata {
|
||||
name = "send-data-proxmox"
|
||||
namespace = kubernetes_namespace.send.metadata[0].name
|
||||
annotations = {
|
||||
"resize.topolvm.io/threshold" = "10%"
|
||||
"resize.topolvm.io/increase" = "100%"
|
||||
"resize.topolvm.io/storage_limit" = "5Gi"
|
||||
}
|
||||
}
|
||||
spec {
|
||||
access_modes = ["ReadWriteOnce"]
|
||||
storage_class_name = "proxmox-lvm"
|
||||
resources {
|
||||
requests = {
|
||||
storage = "1Gi"
|
||||
}
|
||||
}
|
||||
}
|
||||
lifecycle {
|
||||
# The autoresizer expands requests.storage up to storage_limit and
|
||||
# PVCs can't shrink. Without this, every TF apply tries to revert
|
||||
# to the spec value, K8s rejects the shrink, and the PVC ends up
|
||||
# in Terminating-but-in-use limbo.
|
||||
ignore_changes = [spec[0].resources[0].requests]
|
||||
}
|
||||
# Upload blobs on NFS. Migrated off proxmox-lvm 2026-06-05 for LUN-cap relief —
|
||||
# Send stores encrypted file blobs on disk (metadata in Redis), no embedded DB,
|
||||
# NFS-safe. See docs/plans/2026-06-05-block-storage-harden-nfs-design.md
|
||||
module "nfs_send" {
|
||||
source = "../../modules/kubernetes/nfs_volume"
|
||||
name = "send-data-nfs"
|
||||
namespace = kubernetes_namespace.send.metadata[0].name
|
||||
nfs_server = var.nfs_server
|
||||
nfs_path = "/srv/nfs/send"
|
||||
storage = "5Gi"
|
||||
}
|
||||
|
||||
resource "kubernetes_deployment" "send" {
|
||||
|
|
@ -142,7 +125,7 @@ resource "kubernetes_deployment" "send" {
|
|||
volume {
|
||||
name = "data"
|
||||
persistent_volume_claim {
|
||||
claim_name = kubernetes_persistent_volume_claim.data_proxmox.metadata[0].name
|
||||
claim_name = module.nfs_send.claim_name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue