add pvc-autoresizer for automatic PVC expansion before volumes fill up [ci skip]

Deploy topolvm/pvc-autoresizer controller that monitors kubelet_volume_stats
via Prometheus and auto-expands annotated PVCs. Annotated all 9 block-storage
PVCs (proxmox-lvm) with per-PVC thresholds and max limits. Updated PVFillingUp
alert to critical/10m (means auto-expansion failed) and added PVAutoExpanding
info alert at 80%.
This commit is contained in:
Viktor Barzin 2026-04-03 23:30:00 +03:00
parent b2cac8cc97
commit ce7b8c2b2e
12 changed files with 113 additions and 3 deletions

View file

@ -50,6 +50,11 @@ resource "kubernetes_persistent_volume_claim" "plotting-book-data" {
metadata {
name = "plotting-book-data-proxmox"
namespace = kubernetes_namespace.plotting-book.metadata[0].name
annotations = {
"resize.topolvm.io/threshold" = "80%"
"resize.topolvm.io/increase" = "100%"
"resize.topolvm.io/storage_limit" = "5Gi"
}
}
spec {
access_modes = ["ReadWriteOnce"]