upgrade prometheus helm chart [ci skip]

This commit is contained in:
Viktor Barzin 2023-12-25 21:40:19 +00:00
parent e3a8cd16b4
commit 15bade148c
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
3 changed files with 34 additions and 5 deletions

View file

@ -68,7 +68,8 @@ resource "helm_release" "prometheus" {
repository = "https://prometheus-community.github.io/helm-charts"
chart = "prometheus"
version = "15.0.2"
# version = "15.0.2"
version = "25.8.2"
values = [templatefile("${path.module}/prometheus_chart_values.tpl", { alertmanager_mail_pass = var.alertmanager_account_password, alertmanager_slack_api_url = var.alertmanager_slack_api_url })]
}
@ -176,6 +177,24 @@ resource "kubernetes_persistent_volume" "prometheus_grafana_pv" {
}
}
}
resource "kubernetes_persistent_volume" "alertmanager_pv" {
metadata {
name = "alertmanager-pv"
}
spec {
capacity = {
"storage" = "2Gi"
}
access_modes = ["ReadWriteOnce"]
persistent_volume_source {
nfs {
path = "/mnt/main/alertmanager"
server = "10.0.10.15"
}
}
}
}
resource "kubernetes_persistent_volume_claim" "prometheus_grafana_pvc" {
metadata {
name = "grafana-iscsi-pvc"