From 39745ea1a3db1ba83390f1d3e1ad1893fa4031b7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Dec 2025 22:49:32 +0200 Subject: more on this --- f3s/prometheus/Justfile | 8 ++++++++ f3s/prometheus/persistence-values.yaml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/f3s/prometheus/Justfile b/f3s/prometheus/Justfile index 2eae235..61e1f06 100644 --- a/f3s/prometheus/Justfile +++ b/f3s/prometheus/Justfile @@ -1,9 +1,17 @@ install: kubectl apply -f persistent-volumes.yaml + kubectl create secret generic additional-scrape-configs --from-file=additional-scrape-configs.yaml -n monitoring --dry-run=client -o yaml | kubectl apply -f - helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring -f persistence-values.yaml + kubectl apply -f freebsd-recording-rules.yaml just -f grafana-ingress/Justfile install +upgrade: + kubectl create secret generic additional-scrape-configs --from-file=additional-scrape-configs.yaml -n monitoring --dry-run=client -o yaml | kubectl apply -f - + helm upgrade prometheus prometheus-community/kube-prometheus-stack --namespace monitoring -f persistence-values.yaml + kubectl apply -f freebsd-recording-rules.yaml + uninstall: just -f grafana-ingress/Justfile delete helm uninstall prometheus --namespace monitoring + kubectl delete secret additional-scrape-configs -n monitoring || true kubectl delete -f persistent-volumes.yaml \ No newline at end of file diff --git a/f3s/prometheus/persistence-values.yaml b/f3s/prometheus/persistence-values.yaml index 8042369..c7f3a2b 100644 --- a/f3s/prometheus/persistence-values.yaml +++ b/f3s/prometheus/persistence-values.yaml @@ -1,5 +1,9 @@ prometheus: prometheusSpec: + additionalScrapeConfigsSecret: + enabled: true + name: additional-scrape-configs + key: additional-scrape-configs.yaml storageSpec: volumeClaimTemplate: spec: -- cgit v1.2.3