fixup! Set required image tags for prometheus.

This commit is contained in:
2021-03-14 22:17:09 +00:00
parent 55d9675874
commit 96b5bd6709
2 changed files with 17 additions and 14 deletions
+12 -13
View File
@@ -26,18 +26,18 @@ resource "helm_release" "prometheus" {
name = "grafana.plugins"
value = "devopsprodigy-kubegraf-app"
}
set {
name = "prometheus-node-exporter.image.tag"
value = "v1.1.2"
}
set {
name = "prometheus.prometheusSpec.image.tag"
value = "v2.25.1"
}
set {
name = "prometheus.alertManagerSpec.image.tag"
value = "v2.25.1"
}
# set {
# name = "prometheus-node-exporter.image.tag"
# value = "v1.1.2"
# }
# set {
# name = "prometheus.prometheusSpec.image.tag"
# value = "v2.25.1"
# }
# set {
# name = "prometheus.alertManagerSpec.image.tag"
# value = "v2.25.1"
# }
}
## SEE following for the dashboard configuration
@@ -71,7 +71,6 @@ kubectl delete ns kubegraf
resource "null_resource" "prometheus_patch" {
depends_on = [helm_release.prometheus]
provisioner "local-exec" {
when = create
command = <<EOF
kubectl patch ds prometheus-prometheus-node-exporter --type json -p '[{"op": "remove", "path" : "/spec/template/spec/containers/0/volumeMounts/2/mountPropagation"}]' || true
EOF