Updating prom operator to current latest

This commit is contained in:
Moritz Graf 2024-02-03 17:19:09 +01:00
parent a7693bdbb6
commit 4752db1e3a
2 changed files with 30 additions and 30 deletions

View File

@ -275,7 +275,7 @@ The prometheus-operator, now called [kube-prometheus-stack](https://github.com/p
kubectl create ns monitoring
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm upgrade --install --create-namespace prometheus-operator prometheus-community/kube-prometheus-stack -n monitoring -f monitoring/prometheus-operator.secret.yml
helm upgrade --install --create-namespace prometheus-operator prometheus-community/kube-prometheus-stack -n monitoring -f monitoring/prometheus-operator.secret.yml --version 56.6.1
# alert configuration
NAMESPACES_TO_ALERT=( kube-system monitoring cert-manager datalab ingress-nginx mailu minio velero web openebs )
for i in "${NAMESPACES_TO_ALERT[@]}"; do

View File

@ -18,36 +18,36 @@ kubeProxy:
prometheus:
prometheusSpec:
shards: null
# shards: null
# https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L2681
additionalScrapeConfigs:
- job_name: muc-kitchen
scrape_interval: 1m
basic_auth:
username: ahfahfoozuVeezoong6c
password: aeThoom4deiNgeici0Th
static_configs:
- targets: [ 'dyndns-muc.moritzgraf.de:60200']
labels:
namespace: monitoring
- job_name: muc-living
scrape_interval: 1m
basic_auth:
username: Gul3zooSa5Waphophuag
password: eeLie9Mai9ahfi5ahy2i
static_configs:
- targets: [ 'dyndns-muc.moritzgraf.de:60201']
labels:
namespace: monitoring
- job_name: rgbg-living
scrape_interval: 1m
basic_auth:
username: oot6ainge9aef6iaf4Cu
password: oonohNaej6soh7TooPha
static_configs:
- targets: [ 'dyndns.moritzgraf.de:60200']
labels:
namespace: monitoring
# additionalScrapeConfigs:
# - job_name: muc-kitchen
# scrape_interval: 1m
# basic_auth:
# username: ahfahfoozuVeezoong6c
# password: aeThoom4deiNgeici0Th
# static_configs:
# - targets: [ 'dyndns-muc.moritzgraf.de:60200']
# labels:
# namespace: monitoring
# - job_name: muc-living
# scrape_interval: 1m
# basic_auth:
# username: Gul3zooSa5Waphophuag
# password: eeLie9Mai9ahfi5ahy2i
# static_configs:
# - targets: [ 'dyndns-muc.moritzgraf.de:60201']
# labels:
# namespace: monitoring
# - job_name: rgbg-living
# scrape_interval: 1m
# basic_auth:
# username: oot6ainge9aef6iaf4Cu
# password: oonohNaej6soh7TooPha
# static_configs:
# - targets: [ 'dyndns.moritzgraf.de:60200']
# labels:
# namespace: monitoring
storageSpec:
## Using PersistentVolumeClaim
##