mirror of
https://github.com/lukaszraczylo/rpi-home-cluster-setup.git
synced 2026-10-20 01:37:07 +00:00
fixup! Set required image tags for prometheus.
This commit is contained in:
@@ -23,3 +23,7 @@ import:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
terraform fmt -recursive infrastructure/
|
terraform fmt -recursive infrastructure/
|
||||||
|
|
||||||
|
show:
|
||||||
|
@echo Available services:
|
||||||
|
@kubectl get svc -A | grep -E '(adguard|traefik|torrent)' | awk '{print $$2 ": \t"$$5}'
|
||||||
@@ -26,18 +26,18 @@ resource "helm_release" "prometheus" {
|
|||||||
name = "grafana.plugins"
|
name = "grafana.plugins"
|
||||||
value = "devopsprodigy-kubegraf-app"
|
value = "devopsprodigy-kubegraf-app"
|
||||||
}
|
}
|
||||||
set {
|
# set {
|
||||||
name = "prometheus-node-exporter.image.tag"
|
# name = "prometheus-node-exporter.image.tag"
|
||||||
value = "v1.1.2"
|
# value = "v1.1.2"
|
||||||
}
|
# }
|
||||||
set {
|
# set {
|
||||||
name = "prometheus.prometheusSpec.image.tag"
|
# name = "prometheus.prometheusSpec.image.tag"
|
||||||
value = "v2.25.1"
|
# value = "v2.25.1"
|
||||||
}
|
# }
|
||||||
set {
|
# set {
|
||||||
name = "prometheus.alertManagerSpec.image.tag"
|
# name = "prometheus.alertManagerSpec.image.tag"
|
||||||
value = "v2.25.1"
|
# value = "v2.25.1"
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
## SEE following for the dashboard configuration
|
## SEE following for the dashboard configuration
|
||||||
@@ -71,7 +71,6 @@ kubectl delete ns kubegraf
|
|||||||
resource "null_resource" "prometheus_patch" {
|
resource "null_resource" "prometheus_patch" {
|
||||||
depends_on = [helm_release.prometheus]
|
depends_on = [helm_release.prometheus]
|
||||||
provisioner "local-exec" {
|
provisioner "local-exec" {
|
||||||
when = create
|
|
||||||
command = <<EOF
|
command = <<EOF
|
||||||
kubectl patch ds prometheus-prometheus-node-exporter --type json -p '[{"op": "remove", "path" : "/spec/template/spec/containers/0/volumeMounts/2/mountPropagation"}]' || true
|
kubectl patch ds prometheus-prometheus-node-exporter --type json -p '[{"op": "remove", "path" : "/spec/template/spec/containers/0/volumeMounts/2/mountPropagation"}]' || true
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user