From db452793527d76dfdb7d6c7edb4015524f30ce50 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 26 Jun 2024 20:32:39 +0200 Subject: [PATCH] fix(prometheus): limit prometheus to arm nodes --- kube-prometheus/config/values.prometheus.yaml | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/kube-prometheus/config/values.prometheus.yaml b/kube-prometheus/config/values.prometheus.yaml index c4a8534..6e3ae8d 100644 --- a/kube-prometheus/config/values.prometheus.yaml +++ b/kube-prometheus/config/values.prometheus.yaml @@ -13,6 +13,8 @@ defaultRules: prometheus: prometheusSpec: retention: 7d + nodeSelector: + kubernetes.io/arch: arm64 serviceMonitorNamespaceSelector: matchLabels: prometheus: default @@ -37,7 +39,7 @@ prometheus: cpu: 500m limits: memory: 4Gi - cpu: 800m + cpu: 800m storageSpec: volumeClaimTemplate: spec: @@ -54,7 +56,7 @@ kubeEtcd: kubeControllerManager: enabled: true - endpoints: ['172.23.2.10'] + endpoints: ["172.23.2.10"] service: enabled: true port: 10257 @@ -65,7 +67,7 @@ kubeControllerManager: kubeScheduler: enabled: false - endpoints: ['172.23.2.10'] + endpoints: ["172.23.2.10"] service: enabled: true port: 10259 @@ -76,7 +78,7 @@ kubeScheduler: kubeProxy: enabled: false - endpoints: ['172.23.2.10'] + endpoints: ["172.23.2.10"] service: enabled: true port: 10249 @@ -102,16 +104,16 @@ grafana: auth: disable_login_form: true auth.generic_oauth: - name: Forgejo - icon: signin - enabled: "true" - client_id: "${GF_OAUTH_CLIENT_ID}" - client_secret: "${GF_OAUTH_CLIENT_SECRET}" - empty_scopes: true - auth_url: https://code.icb4dc0.de/login/oauth/authorize - token_url: https://code.icb4dc0.de/login/oauth/access_token - api_url: https://code.icb4dc0.de/login/oauth/userinfo - skip_org_role_sync: true + name: Forgejo + icon: signin + enabled: "true" + client_id: "${GF_OAUTH_CLIENT_ID}" + client_secret: "${GF_OAUTH_CLIENT_SECRET}" + empty_scopes: true + auth_url: https://code.icb4dc0.de/login/oauth/authorize + token_url: https://code.icb4dc0.de/login/oauth/access_token + api_url: https://code.icb4dc0.de/login/oauth/userinfo + skip_org_role_sync: true persistence: enabled: false storageClassName: hcloud-volumes @@ -128,4 +130,4 @@ kube-state-metrics: prometheus: monitor: additionalLabels: - prometheus: default \ No newline at end of file + prometheus: default