state(monitoring): update encrypted state

This commit is contained in:
Viktor Barzin 2026-04-14 17:52:13 +00:00
parent b1b408ff0e
commit 0901dd5f61
2 changed files with 28 additions and 0 deletions

View file

@ -30,6 +30,26 @@ module "nfs_prometheus_backup_host" {
nfs_path = "/srv/nfs/prometheus-backup"
}
resource "kubernetes_persistent_volume_claim" "alertmanager_pvc" {
wait_until_bound = false
metadata {
name = "alertmanager-pvc"
namespace = kubernetes_namespace.monitoring.metadata[0].name
annotations = {
"resize.topolvm.io/threshold" = "80%"
"resize.topolvm.io/increase" = "100%"
"resize.topolvm.io/storage_limit" = "10Gi"
}
}
spec {
access_modes = ["ReadWriteOnce"]
storage_class_name = "proxmox-lvm-encrypted"
resources {
requests = { storage = "2Gi" }
}
}
}
resource "helm_release" "prometheus" {
namespace = kubernetes_namespace.monitoring.metadata[0].name
create_namespace = true