Skip to content

Commit

Permalink
feat(alertmanager): add PVC for silences persistance
Browse files Browse the repository at this point in the history
  • Loading branch information
neilamumi committed Dec 19, 2024
1 parent a684516 commit 558f1af
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,18 @@ locals {
requests = { for k, v in var.resources.alertmanager.requests : k => v if v != null }
limits = { for k, v in var.resources.alertmanager.limits : k => v if v != null }
}
storage = {
volumeClaimTemplate = {
spec = {
accessModes = ["ReadWriteOnce"]
resources = {
requests = {
storage = var.alertmanager_storage_size
}
}
}
}
}
}
ingress = {
enabled = true
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,9 @@ variable "dataproxy_timeout" {
type = number
default = 30
}

variable "alertmanager_storage_size" {
description = "PVC size for Alertmanager data."
type = string
default = "10Gi"
}

0 comments on commit 558f1af

Please sign in to comment.