From 681f6daf101fb23dc0a81f15b39ba2115b743a62 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 26 May 2026 02:38:34 +0000 Subject: [PATCH] whisper: migrate PVC from proxmox-lvm to NFS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wave 1 LUN-cap relief. Whisper PVC holds Piper TTS .onnx voice model + a HuggingFace faster-whisper-small-int8 model cache — read-mostly model artefacts, no DB, 303M total. Both whisper and piper deployments are at replicas=0 (GPU-node memory pressure, unrelated). Switched access_modes to ReadWriteMany since both whisper + piper deployments reference the same PVC; on proxmox-lvm RWO they could only colocate on the same node when both come back. Net: -1 SCSI LUN once these are brought back up. --- stacks/whisper/main.tf | 39 ++++++++++----------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/stacks/whisper/main.tf b/stacks/whisper/main.tf index e6bbad5f..12a39ff6 100644 --- a/stacks/whisper/main.tf +++ b/stacks/whisper/main.tf @@ -25,33 +25,14 @@ module "tls_secret" { tls_secret_name = var.tls_secret_name } -resource "kubernetes_persistent_volume_claim" "data_proxmox" { - wait_until_bound = false - metadata { - name = "whisper-data-proxmox" - namespace = kubernetes_namespace.whisper.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] - } +module "nfs_data_host" { + source = "../../modules/kubernetes/nfs_volume" + name = "whisper-data-host" + namespace = kubernetes_namespace.whisper.metadata[0].name + nfs_server = var.nfs_server + nfs_path = "/srv/nfs/whisper" + storage = "1Gi" + access_modes = ["ReadWriteMany"] } resource "kubernetes_deployment" "whisper" { @@ -118,7 +99,7 @@ resource "kubernetes_deployment" "whisper" { volume { name = "data" persistent_volume_claim { - claim_name = kubernetes_persistent_volume_claim.data_proxmox.metadata[0].name + claim_name = module.nfs_data_host.claim_name } } } @@ -244,7 +225,7 @@ resource "kubernetes_deployment" "piper" { volume { name = "data" persistent_volume_claim { - claim_name = kubernetes_persistent_volume_claim.data_proxmox.metadata[0].name + claim_name = module.nfs_data_host.claim_name } } }